Add attic binary cache to sandboxed workspaces
Update the attic cache URL from s0.koi-bebop.ts.net to s0.neet.dev and configure sandboxed workspaces to inherit the host's binary cache settings (substituters, trusted keys, netrc auth via agenix).
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org/"
|
"https://cache.nixos.org/"
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"http://s0.koi-bebop.ts.net:28338/nixos"
|
"http://s0.neet.dev:28338/nixos"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ in
|
|||||||
../shell.nix
|
../shell.nix
|
||||||
hostConfig.inputs.home-manager.nixosModules.home-manager
|
hostConfig.inputs.home-manager.nixosModules.home-manager
|
||||||
hostConfig.inputs.nix-index-database.nixosModules.default
|
hostConfig.inputs.nix-index-database.nixosModules.default
|
||||||
|
hostConfig.inputs.agenix.nixosModules.default
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
@@ -116,6 +117,13 @@ in
|
|||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
nix.settings.trusted-users = [ "googlebot" ];
|
nix.settings.trusted-users = [ "googlebot" ];
|
||||||
|
|
||||||
|
# Binary cache configuration (inherited from host's common/binary-cache.nix)
|
||||||
|
nix.settings.substituters = hostConfig.nix.settings.substituters;
|
||||||
|
nix.settings.trusted-public-keys = hostConfig.nix.settings.trusted-public-keys;
|
||||||
|
nix.settings.fallback = true;
|
||||||
|
nix.settings.netrc-file = config.age.secrets.attic-netrc.path;
|
||||||
|
age.secrets.attic-netrc.file = ../../secrets/attic-netrc.age;
|
||||||
|
|
||||||
# Make nixpkgs available in NIX_PATH and registry (like the NixOS ISO)
|
# Make nixpkgs available in NIX_PATH and registry (like the NixOS ISO)
|
||||||
# This allows `nix-shell -p`, `nix repl '<nixpkgs>'`, etc. to work
|
# This allows `nix-shell -p`, `nix repl '<nixpkgs>'`, etc. to work
|
||||||
nix.nixPath = [ "nixpkgs=${hostConfig.inputs.nixpkgs}" ];
|
nix.nixPath = [ "nixpkgs=${hostConfig.inputs.nixpkgs}" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user