enable disko for Lenni

This commit is contained in:
willifan 2025-05-15 21:33:47 +02:00
parent e6ed8b1dbe
commit f6ec76d301
2 changed files with 4 additions and 11 deletions

View file

@ -3,7 +3,7 @@
disk = {
nvme0n1 = {
type = "disk";
device = "/dev/nvme0n1";
device = "/dev/disk/by-id/nvme-SHGP31-1000GM_KND1N583310801V1L";
content = {
type = "gpt";
partitions = {
@ -23,14 +23,7 @@
size = "100%";
content = {
type = "luks";
name = "crypted";
# disable settings.keyFile if you want to use interactive password entry
#passwordFile = "/tmp/secret.key"; # Interactive
settings = {
allowDiscards = true;
keyFile = "/tmp/secret.key";
};
additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
name = "cryptroot";
content = {
type = "btrfs";
extraArgs = [ "-f" ];
@ -53,7 +46,7 @@
};
"/swap" = {
mountpoint = "/.swapvol";
swap.swapfile.size = "20M";
swap.swapfile.size = "40G";
};
};
};