mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Security/Encryption] almos-force systemd stage-1 init if encryption is enabled
Also copy /etc/crypttab from initrd to regular /etc
This commit is contained in:
parent
79853e531b
commit
390e3fb0ba
1 changed files with 8 additions and 0 deletions
|
|
@ -17,6 +17,14 @@ in {
|
||||||
cfg.cryptsetup.package
|
cfg.cryptsetup.package
|
||||||
];
|
];
|
||||||
|
|
||||||
|
boot.initrd.systemd.contents."/etc/crypttab".text = mkDefault "";
|
||||||
|
|
||||||
|
environment.etc.crypttab = {
|
||||||
|
text = config.boot.initrd.systemd.contents."/etc/crypttab".text;
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.systemd.enable = mkOverride 10 true;
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "cryptd" ];
|
boot.initrd.availableKernelModules = [ "cryptd" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue