2024-09-09 00:22:14 +00:00
|
|
|
{
|
2024-09-13 01:50:53 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.custom.services.fwupd;
|
|
|
|
in {
|
|
|
|
options.custom.services.fwupd.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2024-11-25 18:00:57 +00:00
|
|
|
# BUG: Cache not refreshing properly with libxmlb < 0.3.21
|
|
|
|
# https://github.com/fwupd/fwupd/issues/7918
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/347248
|
2024-09-09 00:22:14 +00:00
|
|
|
# https://wiki.nixos.org/wiki/Fwupd
|
|
|
|
# https://github.com/fwupd/fwupd
|
|
|
|
services.fwupd = {
|
|
|
|
enable = true;
|
2024-09-13 01:50:53 +00:00
|
|
|
extraRemotes = ["lvfs-testing"];
|
2024-09-09 00:22:14 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|