profile/udpdate: unify settings

This commit is contained in:
Felix Buehler 2023-04-02 16:28:09 +02:00
parent dfc6eaebc4
commit 09f70c8537
5 changed files with 20 additions and 5 deletions

View file

@ -15,6 +15,7 @@
./printing
./sway
./sync
./update
./webcam
];
}

View file

@ -0,0 +1,18 @@
{ 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
];
};
}