chore: Merge remote-tracking branch 'origin/main'
Some checks failed
/ check (push) Has been cancelled
Some checks failed
/ check (push) Has been cancelled
This commit is contained in:
commit
7f6cc673a3
2 changed files with 8 additions and 2 deletions
|
@ -85,7 +85,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
imports = with hardware; [
|
imports = with hardware; [
|
||||||
(diskoConfigurations.standardEncrypted { disk = "/dev/nvme0n1"; })
|
(diskoConfigurations.standardWithHibernateSwap {
|
||||||
|
disk = "/dev/nvme0n1";
|
||||||
|
swapSize = "16G";
|
||||||
|
})
|
||||||
common-cpu-intel
|
common-cpu-intel
|
||||||
common-pc-ssd
|
common-pc-ssd
|
||||||
];
|
];
|
||||||
|
|
|
@ -19,6 +19,8 @@ pkgs.writeShellApplication {
|
||||||
cd nix
|
cd nix
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
read -s -r -p 'Swap Size:' swap_size
|
||||||
|
echo
|
||||||
read -s -r -p 'Disk Encryption Password:' pass1
|
read -s -r -p 'Disk Encryption Password:' pass1
|
||||||
echo
|
echo
|
||||||
read -s -r -p 'Disk Encryption Password (Again):' pass2
|
read -s -r -p 'Disk Encryption Password (Again):' pass2
|
||||||
|
@ -44,7 +46,8 @@ pkgs.writeShellApplication {
|
||||||
github:nix-community/disko -- \
|
github:nix-community/disko -- \
|
||||||
--flake '.#$partition_scheme' \
|
--flake '.#$partition_scheme' \
|
||||||
--mode disko \
|
--mode disko \
|
||||||
--arg disk '\"$disk_path\"'"
|
--arg disk '\"$disk_path\"' \
|
||||||
|
--arg swapSize '\"$swap_size\"'"
|
||||||
|
|
||||||
nix-shell --packages git \
|
nix-shell --packages git \
|
||||||
--run "sudo nixos-install \
|
--run "sudo nixos-install \
|
||||||
|
|
Loading…
Add table
Reference in a new issue