1
0
Fork 0

systems: update nix settings

This commit is contained in:
Daniel Kempkens 2024-07-05 22:33:27 +02:00
parent 90f76e9619
commit f932d043fd
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
5 changed files with 67 additions and 58 deletions

View file

@ -24,30 +24,35 @@ in
experimental-features = [ "nix-command" "flakes" ]; experimental-features = [ "nix-command" "flakes" ];
extra-platforms = [ "x86_64-darwin" ]; extra-platforms = [ "x86_64-darwin" ];
log-lines = 25;
auto-optimise-store = true; auto-optimise-store = true;
keep-derivations = true; keep-derivations = true;
keep-outputs = true; keep-outputs = true;
substituters = [ builders-use-substitutes = true;
extra-substituters = [
"https://attic.cache.daniel.sx/nifoc-systems?priority=30" "https://attic.cache.daniel.sx/nifoc-systems?priority=30"
"https://nix-community.cachix.org?priority=50" "https://nix-community.cachix.org?priority=50"
"https://cache.garnix.io?priority=60" "https://cache.garnix.io?priority=60"
]; ];
trusted-substituters = [ extra-trusted-substituters = [
"https://attic.hosting.nedeco.mobi/devshells" "https://attic.hosting.nedeco.mobi/devshells"
]; ];
trusted-public-keys = [ extra-trusted-public-keys = [
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU=" "nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
# trusted-substituters # extra-trusted-substituters
"devshells:YXtbU0DheB229oCr2D0H0qHjj2Ed/e2VZiLSXgQ1IVA=" "devshells:YXtbU0DheB229oCr2D0H0qHjj2Ed/e2VZiLSXgQ1IVA="
]; ];
trusted-users = [ "@admin" ]; trusted-users = [ "@admin" ];
connect-timeout = 5;
}; };
configureBuildUsers = true; configureBuildUsers = true;

View file

@ -48,16 +48,21 @@ in
package = pkgs.nixVersions.stable; package = pkgs.nixVersions.stable;
settings = { settings = {
auto-optimise-store = true; experimental-features = [ "nix-command" "flakes" ];
substituters = [ log-lines = 25;
"https://attic.cache.daniel.sx/nifoc-systems?priority=1" auto-optimise-store = true;
"https://attic.cache.daniel.sx/nifoc-ci?priority=2" keep-derivations = true;
"https://nix-community.cachix.org?priority=3" keep-outputs = true;
"https://cache.garnix.io?priority=4"
extra-substituters = [
"https://attic.cache.daniel.sx/nifoc-systems?priority=30"
"https://attic.cache.daniel.sx/nifoc-ci?priority=35"
"https://nix-community.cachix.org?priority=50"
"https://cache.garnix.io?priority=60"
]; ];
trusted-public-keys = [ extra-trusted-public-keys = [
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU=" "nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk=" "nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
@ -68,6 +73,8 @@ in
"root" "root"
"nix-remote-builder" "nix-remote-builder"
]; ];
connect-timeout = 5;
}; };
gc = { gc = {
@ -75,12 +82,6 @@ in
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
extraOptions = ''
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
'';
}; };
environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc; environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc;

View file

@ -58,16 +58,22 @@ in
package = pkgs.nixVersions.stable; package = pkgs.nixVersions.stable;
settings = { settings = {
auto-optimise-store = true; experimental-features = [ "nix-command" "flakes" ];
extra-platforms = [ "aarch64-linux" ];
substituters = [ log-lines = 25;
"https://attic.cache.daniel.sx/nifoc-systems?priority=1" auto-optimise-store = true;
"https://attic.cache.daniel.sx/nifoc-ci?priority=2" keep-derivations = true;
"https://nix-community.cachix.org?priority=3" keep-outputs = true;
"https://cache.garnix.io?priority=4"
extra-substituters = [
"https://attic.cache.daniel.sx/nifoc-systems?priority=30"
"https://attic.cache.daniel.sx/nifoc-ci?priority=35"
"https://nix-community.cachix.org?priority=50"
"https://cache.garnix.io?priority=60"
]; ];
trusted-public-keys = [ extra-trusted-public-keys = [
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU=" "nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk=" "nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
@ -78,6 +84,8 @@ in
"root" "root"
"nix-remote-builder" "nix-remote-builder"
]; ];
connect-timeout = 5;
}; };
gc = { gc = {
@ -85,13 +93,6 @@ in
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
extraOptions = ''
experimental-features = nix-command flakes
extra-platforms = aarch64-linux
keep-derivations = true
keep-outputs = true
'';
}; };
environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc; environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc;

View file

@ -36,21 +36,28 @@ in
package = pkgs.nixVersions.stable; package = pkgs.nixVersions.stable;
settings = { settings = {
auto-optimise-store = true; experimental-features = [ "nix-command" "flakes" ];
substituters = [ log-lines = 25;
"https://attic.cache.daniel.sx/nifoc-systems?priority=1" auto-optimise-store = true;
"https://attic.cache.daniel.sx/nifoc-ci?priority=2" keep-derivations = true;
"https://nix-community.cachix.org?priority=3" keep-outputs = true;
"https://cache.garnix.io?priority=4"
extra-substituters = [
"https://attic.cache.daniel.sx/nifoc-systems?priority=30"
"https://attic.cache.daniel.sx/nifoc-ci?priority=35"
"https://nix-community.cachix.org?priority=50"
"https://cache.garnix.io?priority=60"
]; ];
trusted-public-keys = [ extra-trusted-public-keys = [
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU=" "nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk=" "nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
]; ];
connect-timeout = 5;
}; };
gc = { gc = {
@ -58,12 +65,6 @@ in
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
extraOptions = ''
experimental-features = nix-command flakes
keep-derivations = true
keep-outputs = true
'';
}; };
environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc; environment.etc."nix/netrc".source = ../../secret/shared/nix-netrc;

View file

@ -66,21 +66,29 @@ in
package = pkgs.nixVersions.stable; package = pkgs.nixVersions.stable;
settings = { settings = {
auto-optimise-store = true; experimental-features = [ "nix-command" "flakes" ];
extra-platforms = [ "aarch64-linux" ];
substituters = [ log-lines = 25;
"https://attic.cache.daniel.sx/nifoc-systems?priority=1" auto-optimise-store = true;
"https://attic.cache.daniel.sx/nifoc-ci?priority=2" keep-derivations = true;
"https://nix-community.cachix.org?priority=3" keep-outputs = true;
"https://cache.garnix.io?priority=4"
extra-substituters = [
"https://attic.cache.daniel.sx/nifoc-systems?priority=30"
"https://attic.cache.daniel.sx/nifoc-ci?priority=35"
"https://nix-community.cachix.org?priority=50"
"https://cache.garnix.io?priority=60"
]; ];
trusted-public-keys = [ extra-trusted-public-keys = [
"nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU=" "nifoc-systems:eDDqVP5BFR6/1KvXbF9oUL8JahDdmbrsYtxlQ57LOTU="
"nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk=" "nifoc-ci:JpD9zqVQi8JuS7B8htPDOQZh08rhInMnGFS9RVhiuwk="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
]; ];
connect-timeout = 5;
}; };
gc = { gc = {
@ -88,13 +96,6 @@ in
dates = "weekly"; dates = "weekly";
options = "--delete-older-than 14d"; options = "--delete-older-than 14d";
}; };
extraOptions = ''
experimental-features = nix-command flakes
extra-platforms = aarch64-linux
keep-derivations = true
keep-outputs = true
'';
}; };
boot = { boot = {