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

8 lines
172 B
Nix
Raw Normal View History

{ config, ... }:
let hostname = config.networking.hostName;
in {
boot.initrd = {
2023-09-20 13:09:16 +00:00
luks.devices."${hostname}".device = "/dev/disk/by-label/${hostname}_crypt";
2023-09-19 17:05:08 +00:00
};
}