nixos/fwupd: make auto-refresh run (and work)

This commit is contained in:
Peter Hoeg 2023-10-19 09:37:56 +02:00
parent aecc437c1c
commit f4856b55dd

View file

@ -181,7 +181,18 @@ in {
# required to update the firmware of disks
services.udisks2.enable = true;
systemd.packages = [ cfg.package ];
systemd = {
packages = [ cfg.package ];
# fwupd-refresh expects a user that we do not create, so just run with DynamicUser
# instead and ensure we take ownership of /var/lib/fwupd
services.fwupd-refresh.serviceConfig = {
DynamicUser = true;
StateDirectory = "fwupd";
};
timers.fwupd-refresh.wantedBy = [ "timers.target" ];
};
security.polkit.enable = true;
};