feat(akhaten): enable impermanence

This commit is contained in:
Luj 2024-08-21 23:27:25 +02:00
parent a8a2c80d52
commit 0a0f3ad1eb
Signed by: luj
GPG key ID: 6FC74C847011FD83
3 changed files with 73 additions and 6 deletions

View file

@ -2,18 +2,24 @@
config,
lib,
modulesPath,
pkgs,
...
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.loader.grub.enable = true;
boot.initrd.availableKernelModules = [ "ahci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
swapDevices = [ { device = "/dev/disk/by-uuid/b2563fcf-18af-43da-b2d2-3e7b84f72421"; } ];
boot.initrd.postDeviceCommands = ''
lvm lvremove --force /dev/mainpool/root || :
yes | lvm lvcreate --size 100G --name root mainpool
${pkgs.e2fsprogs}/bin/mkfs.ext4 /dev/mainpool/root
'';
networking.useDHCP = lib.mkDefault true;