nix-config/hosts/common/optional/encrypted-root.nix
2023-09-20 09:09:16 -04:00

8 lines
172 B
Nix

{ config, ... }:
let hostname = config.networking.hostName;
in {
boot.initrd = {
luks.devices."${hostname}".device = "/dev/disk/by-label/${hostname}_crypt";
};
}