nix-serve should no longer use the default store. Move binaryCaches into the machine submodule.

This commit is contained in:
Kevin Baensch 2019-12-14 07:46:00 +01:00
parent 89debb2c37
commit 345c054448
3 changed files with 19 additions and 9 deletions

View file

@ -59,6 +59,13 @@ in {
The Machines HostName
'';
};
binaryCaches = mkOption {
type = types.listOf types.str;
default = [];
description = ''
Adds binary caches to both nix.trustedBinaryCaches and nix.binaryCaches. ("https://cache.nixos.org" is kept by default)
'';
};
secretPath = mkOption {
type = types.str;
default = (findFirst (elem: elem.prefix == "secretPath") { path = "/secret"; } builtins.nixPath).path;