actually using the nix caches

This commit is contained in:
ari committed 2024-07-26 10:33:17 -04:00
1 parent 2ad51c3815
commit a8550d41be
4 files changed
+15 -4

No files matched your search

+2
View File
@@ -17,6 +17,7 @@
enable = false;
enableDevelopmentKit = false;
}
, localNixCaches ? [ ]
, ...
}:
{ ... }: {
@@ -24,6 +25,7 @@
(import ./nix {
user = user;
systemStateVersion = systemStateVersion;
localNixCaches = localNixCaches;
})
] ++ (if desktop.enable then
[ (import ./desktop ({ user = user; } // desktop)) ]
+3 -3
View File
@@ -1,4 +1,4 @@
{ user, systemStateVersion }:
{ user, systemStateVersion, localNixCaches ? [ ] }:
{ pkgs, ... }:
{
# Nix core
@@ -10,11 +10,11 @@
"https://cache.nixos.org"
"https://cache.flox.dev"
"https://devenv.cachix.org"
];
] ++ localNixCaches;
trusted-substituters = [
"https://cache.flox.dev"
"https://devenv.cachix.org"
];
] ++ localNixCaches;
trusted-users = [ "root" user.name ];
trusted-public-keys = [
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="