Files
nixos-blueprint/modules/nixos/shared/boot/tpm-disk-unlock.nix
T
unexplrd 14b4bdb585 Split shared host config into dedicated modules
- Add shared modules for boot, hardware, networking, input, and host defaults
- Move host-specific TOML flags to new option namespaces
- Update SSH and service defaults for the new layout
2026-05-11 15:01:36 +03:00

16 lines
298 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkDefault mkEnableOption;
cfg = config.unexplrd.boot.tpmDiskUnlock;
in {
options.unexplrd.boot.tpmDiskUnlock.enable =
mkEnableOption "TPM2 disk unlock support";
config = {
boot.initrd.systemd.tpm2.enable = mkDefault cfg.enable;
};
}