modules/config: fix

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-05-04 20:40:01 +03:00
parent 1aad949947
commit 338dc7454f
2 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
config,
inputs,
# inputs,
lib,
pkgs,
...
@ -31,9 +31,10 @@ in {
};
};
config = lib.mkMerge [
(mkIf cfg.tpmDiskUnlock {
boot.initrd.systemd.tpm2.enable = mkDefault true;
})
{
boot.initrd.systemd.tpm2.enable = mkDefault cfg.tpmDiskUnlock;
boot.loader.systemd-boot.enable = mkDefault (!cfg.secureBoot);
}
(mkIf cfg.useIwd {
networking = {
networkmanager.wifi.backend = "iwd";