mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 06:18:52 +08:00
bootstrap do not keep output
This commit is contained in:
parent
623db23bf7
commit
9299314a1b
@ -166,6 +166,7 @@
|
|||||||
hostname = "chn-PC";
|
hostname = "chn-PC";
|
||||||
march = "alderlake";
|
march = "alderlake";
|
||||||
gui.enable = true;
|
gui.enable = true;
|
||||||
|
keepOutputs = true;
|
||||||
};
|
};
|
||||||
virtualization =
|
virtualization =
|
||||||
{
|
{
|
||||||
@ -224,10 +225,12 @@
|
|||||||
# 增加 impermanence
|
# 增加 impermanence
|
||||||
# 增加 initrd 中的网络
|
# 增加 initrd 中的网络
|
||||||
# 使用 yubikey 解锁
|
# 使用 yubikey 解锁
|
||||||
|
# nix-serve -p 5000
|
||||||
# nix copy --substitute-on-destination --to ssh://server /run/current-system
|
# nix copy --substitute-on-destination --to ssh://server /run/current-system
|
||||||
# nix copy --to ssh://nixos@192.168.122.56 ./result
|
# nix copy --to ssh://nixos@192.168.122.56 ./result
|
||||||
# sudo nixos-install --flake .#bootstrap
|
# sudo nixos-install --flake .#bootstrap
|
||||||
# --option substituters http://192.168.122.1:5000 --option require-sigs false
|
# --option substituters http://192.168.122.1:5000 --option require-sigs false
|
||||||
|
# sudo chattr -i var/empty
|
||||||
"bootstrap" = inputs.nixpkgs.lib.nixosSystem
|
"bootstrap" = inputs.nixpkgs.lib.nixosSystem
|
||||||
{
|
{
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
@ -5,6 +5,7 @@ inputs:
|
|||||||
hostname = mkOption { type = types.nonEmptyStr; };
|
hostname = mkOption { type = types.nonEmptyStr; };
|
||||||
march = mkOption { type = types.nullOr types.nonEmptyStr; default = null; };
|
march = mkOption { type = types.nullOr types.nonEmptyStr; default = null; };
|
||||||
gui.enable = mkOption { type = types.bool; default = false; };
|
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
|
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" ];
|
system-features = [ "big-parallel" "nixos-test" "benchmark" ];
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [ "nix-command" "flakes" ];
|
||||||
keep-outputs = true;
|
keep-outputs = inputs.config.nixos.system.keepOutputs;
|
||||||
keep-failed = true;
|
keep-failed = true;
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user