about summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorr-vdp <ramses@well-founded.dev>2024-02-09 12:38:29 +0100
committerr-vdp <ramses@well-founded.dev>2024-02-09 16:45:09 +0100
commit12de1b3a387b53e577aef885ea766cd9f2d36238 (patch)
tree529806f6fdbd77c23820d1f0987a2f4bba1ecc17 /nixos/modules/services
parent6ddcfabd593bb199843f6f5fb534f57627557760 (diff)
downloadnixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.tar
nixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.tar.gz
nixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.tar.bz2
nixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.tar.lz
nixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.tar.xz
nixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.tar.zst
nixlib-12de1b3a387b53e577aef885ea766cd9f2d36238.zip
fwupd: 1.9.12 -> 1.9.13
Changelog: https://github.com/fwupd/fwupd/releases/tag/1.9.13
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/hardware/fwupd.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix
index 6fbcbe676460..ebb6fa09aadb 100644
--- a/nixos/modules/services/hardware/fwupd.nix
+++ b/nixos/modules/services/hardware/fwupd.nix
@@ -51,7 +51,9 @@ let
     # to install it because it would create a cyclic dependency between
     # the outputs. We also need to enable the remote,
     # which should not be done by default.
-    lib.optionalAttrs cfg.enableTestRemote (enableRemote cfg.package.installedTests "fwupd-tests")
+    lib.optionalAttrs
+      (cfg.daemonSettings.TestDevices or false)
+      (enableRemote cfg.package.installedTests "fwupd-tests")
   );
 
 in {
@@ -86,15 +88,6 @@ in {
         '';
       };
 
-      enableTestRemote = mkOption {
-        type = types.bool;
-        default = false;
-        description = lib.mdDoc ''
-          Whether to enable test remote. This is used by
-          [installed tests](https://github.com/fwupd/fwupd/blob/master/data/installed-tests/README.md).
-        '';
-      };
-
       package = mkPackageOption pkgs "fwupd" { };
 
       daemonSettings = mkOption {
@@ -128,6 +121,15 @@ in {
                 or if this partition is not mounted at /boot/efi, /boot, or /efi
               '';
             };
+
+            TestDevices = mkOption {
+              type = types.bool;
+              default = false;
+              description = lib.mdDoc ''
+                Create virtual test devices and remote for validating daemon flows.
+                This is only intended for CI testing and development purposes.
+              '';
+            };
           };
         };
         default = {};
@@ -159,7 +161,6 @@ in {
   config = mkIf cfg.enable {
     # Disable test related plug-ins implicitly so that users do not have to care about them.
     services.fwupd.daemonSettings = {
-      DisabledPlugins = cfg.package.defaultDisabledPlugins;
       EspLocation = config.boot.loader.efi.efiSysMountPoint;
     };