diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-18 00:32:39 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-08-19 23:35:10 +0200 |
commit | 2fbae642bcb7a084d51ad0758842f5cfd345b0ee (patch) | |
tree | 4731e3504146d885f6a31c2de46dd6a186fddcc2 /hosts | |
parent | Update (diff) | |
download | nixos-config-2fbae642bcb7a084d51ad0758842f5cfd345b0ee.tar.gz nixos-config-2fbae642bcb7a084d51ad0758842f5cfd345b0ee.tar.bz2 nixos-config-2fbae642bcb7a084d51ad0758842f5cfd345b0ee.zip |
Luna: Add /boot encryption
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/configuration.nix | 14 | ||||
-rw-r--r-- | hosts/luna/hardware.nix | 20 |
2 files changed, 24 insertions, 10 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 2254651..ebcafeb 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -10,13 +10,17 @@ boot = { loader = { - systemd-boot = { - enable = true; - editor = false; - }; efi = { - efiSysMountPoint = "/boot"; canTouchEfiVariables = true; + efiSysMountPoint = "/boot/efi"; + }; + grub = { + enable = true; + version = 2; + efiSupport = true; + device = "nodev"; + enableCryptodisk = true; + splashImage = null; }; timeout = 0; }; diff --git a/hosts/luna/hardware.nix b/hosts/luna/hardware.nix index f93812a..1d87654 100644 --- a/hosts/luna/hardware.nix +++ b/hosts/luna/hardware.nix @@ -15,17 +15,27 @@ in kernelParams = [ "net.ifnames=0" "biosdevname=0" "iomem=relaxed" "mitigations=off" ]; }; + fileSystems."/" = { + device = "none"; + fsType = "tmpfs"; + }; + + boot.initrd.luks.devices."encrypted_boot" = { + device = "/dev/disk/by-uuid/4f5ba100-5c69-49ce-b0cf-2f219a5e9e51"; + preLVM = true; + }; + fileSystems."/boot" = { - device = "/dev/disk/by-uuid/4D55-C906"; + device = "/dev/mapper/encrypted_boot"; fsType = "vfat"; }; - fileSystems."/" = { - device = "none"; - fsType = "tmpfs"; + fileSystems."/boot/efi" = { + device = "/dev/disk/by-uuid/BD51-1431"; + fsType = "vfat"; }; - boot.initrd.luks.devices."encrypted_nix".device = "/dev/disk/by-uuid/e1b9b878-e1de-4311-98b6-681874831a5e"; + boot.initrd.luks.devices."encrypted_nix".device = "/dev/disk/by-uuid/596e43d3-ccda-4f06-bce9-58d6a8c0dd79"; fileSystems."/nix" = { device = "/dev/mapper/encrypted_nix"; |