feat: setup disk encryption on alex

This commit is contained in:
Ashhhleyyy 2023-11-12 18:53:53 +00:00
parent 7700c17bad
commit f9dbb4eedb
Signed by: ash
GPG key ID: 83B789081A0878FB
2 changed files with 11 additions and 2 deletions

View file

@ -9,6 +9,15 @@
./hardware-config.nix ./hardware-config.nix
]; ];
boot.initrd.luks.devices = [
{
name = "root";
device = "/dev/disk/by-uuid/00f32b39-dfcb-4459-bf8e-aa68e2198466";
preLVM = true;
allowDiscards = true;
}
]
networking.hostName = "alex"; networking.hostName = "alex";
networking.firewall.enable = false; networking.firewall.enable = false;

View file

@ -14,12 +14,12 @@
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/de284e37-e327-44d2-a363-3d646bd36553"; { device = "/dev/disk/by-uuid/bb02bd1e-7ee5-4b67-bdf6-1c17aa211db3";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/61F6-B715"; { device = "/dev/disk/by-uuid/D740-09C3";
fsType = "vfat"; fsType = "vfat";
}; };
swapDevices = [ ]; swapDevices = [ ];