ajout du flag pour le client nix-serve

extraction-donnees-privees
Jean-Pierre PRUNARET 9 years ago
parent 85ee98585b
commit 0bbddfbfa0

@ -1,7 +1,9 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# Cache http pour le store config = mkIf config.r6d.config-generator.nix-serve-client {
nix.requireSignedBinaryCaches = false; # Cache http pour le store
nix.binaryCaches = [ "http://192.168.10.169:5000" ]; nix.requireSignedBinaryCaches = false;
nix.binaryCaches = [ "http://192.168.10.169:5000" ];
}
} }

@ -12,6 +12,7 @@
./activation-manuelle/auto-upgrade.nix ./activation-manuelle/auto-upgrade.nix
./activation-manuelle/locate.nix ./activation-manuelle/locate.nix
./activation-manuelle/nix-serve.nix ./activation-manuelle/nix-serve.nix
./activation-manuelle/nix-serve-client.nix
./activation-manuelle/swap.nix ./activation-manuelle/swap.nix
]; ];
} }

@ -62,6 +62,14 @@ in
''; '';
}; };
nix-serve-client = mkOption {
type = types.bool;
default = false;
description = ''
Profil pour que la machine soit un serveur de cache nix.
'';
};
nix-serve-server = mkOption { nix-serve-server = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;

Loading…
Cancel
Save