modify disko config for Tytonidae

This commit is contained in:
ulic-youthlic 2025-01-23 15:19:39 +08:00
parent 6341c0b09e
commit 5a11300282
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 32 additions and 3 deletions

View file

@ -10,7 +10,7 @@
partitions = {
ESP = {
name = "ESP";
size = "512M";
size = "1G";
type = "EF00";
content = {
type = "filesystem";
@ -22,6 +22,35 @@
];
};
};
crypto-swap = {
size = "32G";
content = {
type = "luks";
name = "crypto-swap";
passwordFile = "/tmp/secret.key";
settings = {
allowDiscards = true;
fallbackToPassword = true;
};
content = {
type = "swap";
resumeDevice = true;
};
initrdUnlock = true;
extraFormatArgs = [
"--type luks2"
"--cipher aes-xts-plain64"
"--hash sha512"
"--iter-time 5000"
"--pbkdf argon2id"
"--key-size 256"
"--use-random"
];
extraOpenArgs = [
"--timeout 10"
];
};
};
crypto1 = {
size = "100%";
content = {
@ -83,7 +112,7 @@
type = "btrfs";
extraArgs = [
"-f"
"-d raid0"
"-d single"
"/dev/mapper/crypto1"
];
subvolumes = {

View file

@ -8,7 +8,7 @@
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];