mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
profile/udpdate: unify settings
This commit is contained in:
parent
dfc6eaebc4
commit
09f70c8537
5 changed files with 20 additions and 5 deletions
18
profiles/update/default.nix
Normal file
18
profiles/update/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue