mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-27 06:10:53 +01:00
Fixed bincache
This commit is contained in:
parent
b727539b09
commit
0c788fd30c
2 changed files with 12 additions and 4 deletions
|
@ -14,8 +14,16 @@ with lib;
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable
|
||||
{
|
||||
sops.secrets.bin-cache-priv-key = {};
|
||||
{
|
||||
users.users.nix-serve = {
|
||||
isSystemUser = true;
|
||||
};
|
||||
users.users.nix-serve.group = "nix-serve";
|
||||
users.groups.nix-serve = {};
|
||||
|
||||
sops.secrets.bin-cache-priv-key = {
|
||||
owner = "nix-serve";
|
||||
};
|
||||
|
||||
services.nix-serve = {
|
||||
enable = true;
|
||||
|
|
|
@ -13,7 +13,7 @@ with lib;
|
|||
nixpkgs.config.allowUnfree = true;
|
||||
nix = {
|
||||
autoOptimiseStore = true;
|
||||
allowedUsers = [ "julien" "hydra" ];
|
||||
allowedUsers = [ "julien" "hydra" "nix-serve" ];
|
||||
gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
|
@ -26,7 +26,7 @@ with lib;
|
|||
"nixpkgs=${inputs.nixpkgs}"
|
||||
];
|
||||
binaryCaches = [
|
||||
"https://bin.julienmalka.me"
|
||||
# "https://bin.julienmalka.me"
|
||||
"https://cache.nixos.org/"
|
||||
];
|
||||
binaryCachePublicKeys = [
|
||||
|
|
Loading…
Add table
Reference in a new issue