diff --git a/options/device/hardware.nix b/options/device/hardware.nix index 6151d84..ac2d42a 100644 --- a/options/device/hardware.nix +++ b/options/device/hardware.nix @@ -23,7 +23,7 @@ in hasTPM = mkOption { type = lib.types.bool; default = false; - description = "Does this device have a TPM (Trusted Platform Module)?" - } + description = "Does this device have a TPM (Trusted Platform Module)?"; + }; }; } diff --git a/system/hardware/tpm.nix b/system/hardware/tpm.nix index e2dc62b..d6ae3e6 100644 --- a/system/hardware/tpm.nix +++ b/system/hardware/tpm.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: let - inherit (lib) mkIf; + inherit (lib) mkIf mkDefault; - enabled = config.device.hasTPM; + enabled = config.myOptions.device.hasTPM; in { config = mkIf enabled { security.tpm2 = {