mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:18:45 +08:00
bootstrap do not keep output
This commit is contained in:
parent
623db23bf7
commit
9299314a1b
@ -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";
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user