continuing security/secrets overhaul
This commit is contained in:
parent
7350625fc4
commit
7f73c1af20
2 changed files with 16 additions and 3 deletions
|
|
@ -37,11 +37,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
initrd.luks.devices = {
|
initrd.luks.devices = {
|
||||||
root = {
|
root = { # Use https://nixos.wiki/wiki/Full_Disk_Encryption
|
||||||
# Use https://nixos.wiki/wiki/Full_Disk_Encryption
|
|
||||||
device = "/dev/disk/by-uuid/5526aab7-b779-4fc8-95bd-9452bc3a9232";
|
device = "/dev/disk/by-uuid/5526aab7-b779-4fc8-95bd-9452bc3a9232";
|
||||||
preLVM = true;
|
preLVM = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#Asphodel = { # secondary partition on Tartarus drive
|
||||||
|
#device = "/dev/disk/by-uuid/45f5f6ad-a676-4bc1-ad4b-e3e26b5697f4";
|
||||||
|
#preLVM =false;
|
||||||
|
#};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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.file
|
||||||
## https://nix-community.github.io/home-manager/options.xhtml#opt-home.activation
|
## 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 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 = {
|
home = {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue