From f9dbb4eedb4eace3670bfc51e136cca821792f90 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 12 Nov 2023 18:53:53 +0000 Subject: [PATCH] feat: setup disk encryption on alex --- hosts/alex/configuration.nix | 9 +++++++++ hosts/alex/hardware-config.nix | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hosts/alex/configuration.nix b/hosts/alex/configuration.nix index 8beb3ec..4cd9d6a 100644 --- a/hosts/alex/configuration.nix +++ b/hosts/alex/configuration.nix @@ -9,6 +9,15 @@ ./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.firewall.enable = false; diff --git a/hosts/alex/hardware-config.nix b/hosts/alex/hardware-config.nix index 5c1961a..0509336 100644 --- a/hosts/alex/hardware-config.nix +++ b/hosts/alex/hardware-config.nix @@ -14,12 +14,12 @@ boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/de284e37-e327-44d2-a363-3d646bd36553"; + { device = "/dev/disk/by-uuid/bb02bd1e-7ee5-4b67-bdf6-1c17aa211db3"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/61F6-B715"; + { device = "/dev/disk/by-uuid/D740-09C3"; fsType = "vfat"; }; swapDevices = [ ];