summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/hardware/fwupd.nix
diff options
context:
space:
mode:
authorAndré-Patrick Bubel <code@apb.name>2018-06-02 17:47:34 +0200
committerJan Tojnar <jtojnar@gmail.com>2018-08-07 23:25:22 +0200
commit08547ff642c91deb63d7aa1f26664a287694cbae (patch)
tree70afcda3b46c09fe27dafc8ad33ef95f9fc169b4 /nixos/modules/services/hardware/fwupd.nix
parent2428f5dda13475afba2dee93f4beb2bd97086930 (diff)
fwupd: 1.0.5 -> 1.1.0
We override the ESP mount point in the config file /etc/fwupd/uefi.conf (available since version 1.0.6), as it is set to a path in the nix store during build time. Tests are disabled as it needs /etc/os-release, which is not available when building with sandboxing enabled.
Diffstat (limited to 'nixos/modules/services/hardware/fwupd.nix')
-rw-r--r--nixos/modules/services/hardware/fwupd.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/fwupd.nix b/nixos/modules/services/hardware/fwupd.nix
index d97d690920a6..7743f81fd622 100644
--- a/nixos/modules/services/hardware/fwupd.nix
+++ b/nixos/modules/services/hardware/fwupd.nix
@@ -71,6 +71,13 @@ in {
BlacklistPlugins=${lib.concatStringsSep ";" cfg.blacklistPlugins}
'';
};
+ "fwupd/uefi.conf" = {
+ source = pkgs.writeText "uefi.conf" ''
+ [uefi]
+ OverrideESPMountPoint=${config.boot.loader.efi.efiSysMountPoint}
+ '';
+ };
+
} // originalEtc // extraTrustedKeys;
services.dbus.packages = [ pkgs.fwupd ];