about summary refs log tree commit diff
path: root/machines/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-03-24 20:09:44 +0100
committeraszlig <aszlig@nix.build>2022-03-24 20:11:45 +0100
commit0d6339c1327d07f8bcb5dfe05d1ed54551baf2d9 (patch)
treeef0a9490f8f11625737ae67b79e181e9166fea01 /machines/aszlig
parent25a077f90a0005b519db071a6b5b4d20bd6d2d45 (diff)
machines/dnyarri: Add fwupd
Another thing that was hanging around in configuration.nix and with my
new hardware it actually became useful since it does have capsule
updates.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'machines/aszlig')
-rw-r--r--machines/aszlig/dnyarri.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/machines/aszlig/dnyarri.nix b/machines/aszlig/dnyarri.nix
index b670871d..68498109 100644
--- a/machines/aszlig/dnyarri.nix
+++ b/machines/aszlig/dnyarri.nix
@@ -55,6 +55,14 @@ in {
     pkgs.paperwork
   ];
 
+  services.fwupd.enable = true;
+  services.fwupd.package = pkgs.fwupd.overrideAttrs (drv: {
+    # This is to disable reports because they include identifying information.
+    postInstall = (drv.postInstall or "") + ''
+      sed -i -e '/ReportURI/d' "$out"/etc/fwupd/remotes.d/*.conf
+    '';
+  });
+
   hardware.cpu.amd.updateMicrocode = true;
 
   hardware.sane.enable = true;