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

@ -2,7 +2,7 @@
{ {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
#./disko.nix ./disko.nix
../../modules/default ../../modules/default

View file

@ -3,7 +3,7 @@
disk = { disk = {
nvme0n1 = { nvme0n1 = {
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; device = "/dev/disk/by-id/nvme-SHGP31-1000GM_KND1N583310801V1L";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
@ -23,14 +23,7 @@
size = "100%"; size = "100%";
content = { content = {
type = "luks"; type = "luks";
name = "crypted"; name = "cryptroot";
# 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" ];
content = { content = {
type = "btrfs"; type = "btrfs";
extraArgs = [ "-f" ]; extraArgs = [ "-f" ];
@ -53,7 +46,7 @@
}; };
"/swap" = { "/swap" = {
mountpoint = "/.swapvol"; mountpoint = "/.swapvol";
swap.swapfile.size = "20M"; swap.swapfile.size = "40G";
}; };
}; };
}; };