nixos/profiles/update/default.nix

22 lines
344 B
Nix
Raw Permalink Normal View History

2024-07-28 21:08:02 +02:00
{
config,
lib,
pkgs,
...
}:
2023-04-02 16:28:09 +02:00
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;
2024-07-28 21:08:02 +02:00
environment.systemPackages = with pkgs; [ topgrade ];
2023-04-02 16:28:09 +02:00
};
}