move swap to keyfile in boot for jaci system
This commit is contained in:
parent
fdda078fb4
commit
8c09a52dae
@ -43,10 +43,19 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# encrypted swap
|
# encrypted swap
|
||||||
boot.initrd.luks.devices."luks-a62778ac-3b3c-4eae-8713-1ab83f585608".device =
|
boot.initrd.luks.devices."luks-a62778ac-3b3c-4eae-8713-1ab83f585608" = {
|
||||||
"/dev/disk/by-uuid/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
|
# 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
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user