auto optimize store as default

This commit is contained in:
2023-12-07 00:01:13 +08:00
parent e12d3a7349
commit 902fd30be8
2 changed files with 2 additions and 6 deletions

View File

@@ -246,11 +246,7 @@
};
grub.installDevice = "/dev/disk/by-path/pci-0000:00:05.0-scsi-0:0:0:0";
nixpkgs.march = "sandybridge";
nix =
{
substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
autoOptimiseStore = true;
};
nix.substituters = [ "https://cache.nixos.org/" "https://nix-store.chn.moe" ];
initrd.sshd.enable = true;
impermanence.enable = true;
networking = { hostname = "vps6"; nebula.enable = true; };

View File

@@ -6,7 +6,7 @@ inputs:
marches = mkOption { type = types.nullOr (types.listOf types.nonEmptyStr); default = null; };
keepOutputs = mkOption { type = types.bool; default = false; };
substituters = mkOption { type = types.nullOr (types.listOf types.nonEmptyStr); default = null; };
autoOptimiseStore = mkOption { type = types.bool; default = false; };
autoOptimiseStore = mkOption { type = types.bool; default = true; };
};
config =
let