move swap to keyfile in boot for jaci system

This commit is contained in:
Nathan Anderson 2026-04-04 12:54:09 -06:00
parent fdda078fb4
commit 8c09a52dae

View File

@ -43,10 +43,19 @@
};
# encrypted swap
boot.initrd.luks.devices."luks-a62778ac-3b3c-4eae-8713-1ab83f585608".device =
"/dev/disk/by-uuid/a62778ac-3b3c-4eae-8713-1ab83f585608";
boot.initrd.luks.devices."luks-a62778ac-3b3c-4eae-8713-1ab83f585608" = {
device = "/dev/disk/by-uuid/a62778ac-3b3c-4eae-8713-1ab83f585608";
keyFile = "/etc/secrets/swap.key";
};
swapDevices = [ { device = "/dev/mapper/luks-a62778ac-3b3c-4eae-8713-1ab83f585608"; } ];
# provide keyfile for swap
boot.initrd.secrets = {
"/etc/secrets/swap.key" = "/etc/secrets/swap.key";
};
swapDevices = [
{ device = "/dev/mapper/luks-a62778ac-3b3c-4eae-8713-1ab83f585608"; }
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's