bootstrap do not keep output

This commit is contained in:
陈浩南 2023-07-31 21:55:15 +08:00
parent 623db23bf7
commit 9299314a1b
2 changed files with 5 additions and 1 deletions

View File

@ -166,6 +166,7 @@
hostname = "chn-PC";
march = "alderlake";
gui.enable = true;
keepOutputs = true;
};
virtualization =
{
@ -224,10 +225,12 @@
# 增加 impermanence
# 增加 initrd 中的网络
# 使用 yubikey 解锁
# nix-serve -p 5000
# nix copy --substitute-on-destination --to ssh://server /run/current-system
# nix copy --to ssh://nixos@192.168.122.56 ./result
# sudo nixos-install --flake .#bootstrap
# --option substituters http://192.168.122.1:5000 --option require-sigs false
# sudo chattr -i var/empty
"bootstrap" = inputs.nixpkgs.lib.nixosSystem
{
system = "x86_64-linux";

View File

@ -5,6 +5,7 @@ inputs:
hostname = mkOption { type = types.nonEmptyStr; };
march = mkOption { type = types.nullOr types.nonEmptyStr; default = null; };
gui.enable = mkOption { type = types.bool; default = false; };
keepOutputs = mkOption { type = types.bool; default = false; };
};
config = let inherit (inputs.lib) mkMerge mkIf; inherit (inputs.localLib) mkConditional stripeTabs; in mkMerge
[
@ -16,7 +17,7 @@ inputs:
{
system-features = [ "big-parallel" "nixos-test" "benchmark" ];
experimental-features = [ "nix-command" "flakes" ];
keep-outputs = true;
keep-outputs = inputs.config.nixos.system.keepOutputs;
keep-failed = true;
auto-optimise-store = true;
};