diff --git a/common/binary-cache.nix b/common/binary-cache.nix index 3824c19..8efd413 100644 --- a/common/binary-cache.nix +++ b/common/binary-cache.nix @@ -6,7 +6,7 @@ substituters = [ "https://cache.nixos.org/" "https://nix-community.cachix.org" - "http://s0.koi-bebop.ts.net:28338/nixos" + "http://s0.neet.dev:28338/nixos" ]; trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" diff --git a/common/sandboxed-workspace/base.nix b/common/sandboxed-workspace/base.nix index 38b1339..958fce2 100644 --- a/common/sandboxed-workspace/base.nix +++ b/common/sandboxed-workspace/base.nix @@ -27,6 +27,7 @@ in ../shell.nix hostConfig.inputs.home-manager.nixosModules.home-manager hostConfig.inputs.nix-index-database.nixosModules.default + hostConfig.inputs.agenix.nixosModules.default ]; nixpkgs.overlays = [ @@ -116,6 +117,13 @@ in nix.settings.experimental-features = [ "nix-command" "flakes" ]; 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) # This allows `nix-shell -p`, `nix repl ''`, etc. to work nix.nixPath = [ "nixpkgs=${hostConfig.inputs.nixpkgs}" ];