From edd9c6359674429e04095e18f94f51c492c52e34 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Fri, 12 Apr 2024 23:29:29 +0200 Subject: [PATCH] Fix typos --- options/device/hardware.nix | 4 ++-- system/hardware/tpm.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 = {