diff --git a/core/hosts/hades/default.nix b/core/hosts/hades/default.nix index 51b99c2..095f669 100755 --- a/core/hosts/hades/default.nix +++ b/core/hosts/hades/default.nix @@ -37,11 +37,15 @@ }; initrd.luks.devices = { - root = { - # Use https://nixos.wiki/wiki/Full_Disk_Encryption + root = { # Use https://nixos.wiki/wiki/Full_Disk_Encryption device = "/dev/disk/by-uuid/5526aab7-b779-4fc8-95bd-9452bc3a9232"; preLVM = true; }; + + #Asphodel = { # secondary partition on Tartarus drive + #device = "/dev/disk/by-uuid/45f5f6ad-a676-4bc1-ad4b-e3e26b5697f4"; + #preLVM =false; + #}; }; }; diff --git a/home/scripts/automount/default.nix b/home/scripts/automount/default.nix index 3ac3de8..a1d9615 100755 --- a/home/scripts/automount/default.nix +++ b/home/scripts/automount/default.nix @@ -2,11 +2,20 @@ ## https://nix-community.github.io/home-manager/options.xhtml#opt-home.file ## https://nix-community.github.io/home-manager/options.xhtml#opt-home.activation -{ flakePath, disksPath, ... }: +{ config, flakePath, disksPath, primaryUser, ... }: { # need option for `zfs set mountpoint=/myspecialfolder mypool` + # need to set up auto luks unlock with sops-nix + + ## Provides LUKS key for Asphodel + environment.etc."crypttab".text = '' + data /dev/disk/by-uuid/45f5f6ad-a676-4bc1-ad4b-e3e26b5697f4 ${config.sops.secrets.Asphodel-key.path} + ''; + ## Mounts Asphodel to typical media location + fileSystems."/run/media/${primaryUser}/Asphodel".device = + "/dev/mapper/Asphodel"; home = {