about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorr-vdp <ramses@well-founded.dev>2024-01-24 19:29:37 +0100
committerr-vdp <ramses@well-founded.dev>2024-01-24 20:29:01 +0100
commit28ea07d4e33c63447e699562d0085f6eeefd6ee0 (patch)
treecfb89d5068c056a3dd95d00d77db3e26ed39390b /nixos/modules/services/hardware
parent5cd2baa57a9ff2d84f2615700434fa04f3067fdb (diff)
downloadnixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.tar
nixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.tar.gz
nixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.tar.bz2
nixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.tar.lz
nixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.tar.xz
nixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.tar.zst
nixlib-28ea07d4e33c63447e699562d0085f6eeefd6ee0.zip
fwupd: 1.9.11 -> 1.9.12
The fwupd daemon refuses to start when there is an uefi_capsule key without any
values in the config file, so I modified the module to only include this
key when there are actually values that go inside.
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/fwupd.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix
index 6b3a109ed6f7..6fbcbe676460 100644
--- a/nixos/modules/services/hardware/fwupd.nix
+++ b/nixos/modules/services/hardware/fwupd.nix
@@ -16,6 +16,7 @@ let
     "fwupd/fwupd.conf" = {
       source = format.generate "fwupd.conf" {
         fwupd = cfg.daemonSettings;
+      } // lib.optionalAttrs (lib.length (lib.attrNames cfg.uefiCapsuleSettings) != 0) {
         uefi_capsule = cfg.uefiCapsuleSettings;
       };
       # fwupd tries to chmod the file if it doesn't have the right permissions