diff options
author | aszlig <aszlig@nix.build> | 2022-03-24 20:09:44 +0100 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2022-03-24 20:11:45 +0100 |
commit | 0d6339c1327d07f8bcb5dfe05d1ed54551baf2d9 (patch) | |
tree | ef0a9490f8f11625737ae67b79e181e9166fea01 | |
parent | 25a077f90a0005b519db071a6b5b4d20bd6d2d45 (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>
-rw-r--r-- | machines/aszlig/dnyarri.nix | 8 |
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; |