about summary refs log tree commit diff
path: root/nixos/modules/services/hardware
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2022-09-04 20:23:12 +0200
committerJan Tojnar <jtojnar@gmail.com>2022-09-04 20:23:12 +0200
commit89c025b3667165b519db7ce82a4ff4fcc27f29a7 (patch)
treedf6cb693cf5b06dbbb54e438d0255922d648d59c /nixos/modules/services/hardware
parentc6f4784cc8992bedc6193b16fd1031ef5f89d292 (diff)
nixos/fwupd: add polkit dependency
We are building fwupd daemon with polkit support which means
polkit daemon is required.

Previously polkit was enabled by default via udisks2 but that
stopped with https://github.com/NixOS/nixpkgs/commit/f7637100655127dffbe14011b45be6a71f0e203d
breaking the fwupd installed tests as a result.

Let’s add the polkit dependency to the fwupd module to ensure polkit is available.
Diffstat (limited to 'nixos/modules/services/hardware')
-rw-r--r--nixos/modules/services/hardware/fwupd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix
index fe00cd1e32b6b..2249f866803ae 100644
--- a/nixos/modules/services/hardware/fwupd.nix
+++ b/nixos/modules/services/hardware/fwupd.nix
@@ -126,6 +126,8 @@ in {
     services.udev.packages = [ cfg.package ];
 
     systemd.packages = [ cfg.package ];
+
+    security.polkit.enable = true;
   };
 
   meta = {