nixos/profiles/update/default.nix
2024-07-28 21:08:02 +02:00

21 lines
344 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.profiles.update;
in
{
options.my.profiles.update = with lib; {
enable = mkEnableOption "update profile";
};
config = lib.mkIf cfg.enable {
# Enable firmware update daemon
services.fwupd.enable = true;
environment.systemPackages = with pkgs; [ topgrade ];
};
}