chore: Merge remote-tracking branch 'origin/main'
Some checks failed
/ check (push) Has been cancelled

This commit is contained in:
Daniel Flanagan 2025-02-21 15:10:55 -06:00
commit 7f6cc673a3
2 changed files with 8 additions and 2 deletions

View file

@ -85,7 +85,10 @@
};
imports = with hardware; [
(diskoConfigurations.standardEncrypted { disk = "/dev/nvme0n1"; })
(diskoConfigurations.standardWithHibernateSwap {
disk = "/dev/nvme0n1";
swapSize = "16G";
})
common-cpu-intel
common-pc-ssd
];

View file

@ -19,6 +19,8 @@ pkgs.writeShellApplication {
cd nix
fi
read -s -r -p 'Swap Size:' swap_size
echo
read -s -r -p 'Disk Encryption Password:' pass1
echo
read -s -r -p 'Disk Encryption Password (Again):' pass2
@ -44,7 +46,8 @@ pkgs.writeShellApplication {
github:nix-community/disko -- \
--flake '.#$partition_scheme' \
--mode disko \
--arg disk '\"$disk_path\"'"
--arg disk '\"$disk_path\"' \
--arg swapSize '\"$swap_size\"'"
nix-shell --packages git \
--run "sudo nixos-install \