wip: caching
This commit is contained in:
parent
f2c3cc0ae0
commit
4be96d60b2
2 changed files with 21 additions and 0 deletions
11
_scripts/upload_to_cache.sh
Executable file
11
_scripts/upload_to_cache.sh
Executable 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
|
10
flake.nix
10
flake.nix
|
@ -7,6 +7,16 @@
|
|||
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:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
|
|
Loading…
Reference in a new issue