mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-13 00:16:24 +00:00
7 lines
172 B
Nix
7 lines
172 B
Nix
{ config, ... }:
|
|
let hostname = config.networking.hostName;
|
|
in {
|
|
boot.initrd = {
|
|
luks.devices."${hostname}".device = "/dev/disk/by-label/${hostname}_crypt";
|
|
};
|
|
}
|