about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2023-03-10 15:25:41 -0500
committerLily Foster <lily@lily.flowers>2023-03-10 15:25:41 -0500
commit6e6d31f4bc13e12af7164cd6850a7d4d83b7a2cb (patch)
tree59a8ce98df6d570c6a40d0c7a7bc2cbbed7d25ae /nixos/modules/services
parent1e2590679d0ed2cee2736e8b80373178d085d263 (diff)
nixos/fwupd: add settings option for uefi_capsule.conf
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/hardware/fwupd.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix
index 4e7d730d127b7..b8c2ac94845b0 100644
--- a/nixos/modules/services/hardware/fwupd.nix
+++ b/nixos/modules/services/hardware/fwupd.nix
@@ -18,6 +18,12 @@ let
         fwupd = cfg.daemonSettings;
       };
     };
+
+    "fwupd/uefi_capsule.conf" = {
+      source = format.generate "uefi_capsule.conf" {
+        uefi_capsule = cfg.uefiCapsuleSettings;
+      };
+    };
   };
 
   originalEtc =
@@ -138,6 +144,16 @@ in {
           Configurations for the fwupd daemon.
         '';
       };
+
+      uefiCapsuleSettings = mkOption {
+        type = types.submodule {
+          freeformType = format.type.nestedTypes.elemType;
+        };
+        default = {};
+        description = lib.mdDoc ''
+          UEFI capsule configurations for the fwupd daemon.
+        '';
+      };
     };
   };