wip: caching

This commit is contained in:
silver 2024-05-11 18:14:35 +01:00
parent f2c3cc0ae0
commit 4be96d60b2
Signed by untrusted user: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 21 additions and 0 deletions

11
_scripts/upload_to_cache.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
echo "here"
set -eu
set -f # disable globbing
export IFS=' '
echo "Uploading paths" $OUT_PATHS
#exec /nix/var/nix/profiles/default/bin/nix copy --to "https://nix-cache.skynet.ie" $OUT_PATHS

View file

@ -7,6 +7,16 @@
bfom.url = "gitlab:silver_rust/bfom"; bfom.url = "gitlab:silver_rust/bfom";
}; };
/*
sudo nano /etc/nix/nix.conf
trusted-users = {username}
*/
nixConfig = {
extra-substituters = "https://nix-cache.skynet.ie";
extra-trusted-public-keys = "nix-cache.skynet.ie:20/EYoy4VZJvM9QbtUozDSlUwZ7RemPCgc088VSB7+M=";
};
outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system: outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system:
let let
pkgs = import nixpkgs { pkgs = import nixpkgs {