nix-config/hosts/common/optional/encrypted-root.nix

8 lines
170 B
Nix
Raw Normal View History

2023-12-24 11:16:59 +01:00
{config, ...}: let
hostname = config.networking.hostName;
in {
boot.initrd = {
luks.devices."${hostname}".device = "/dev/disk/by-label/${hostname}_crypt";
};
}