Skip to content

Commit

Permalink
nix: add fwudp module
Browse files Browse the repository at this point in the history
  • Loading branch information
benmezger committed Jan 5, 2025
1 parent 53485ed commit 4400a84
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/default/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
my._1password.enable = true;
my.dconf.enable = true;
my.fonts.enable = true;
my.fwupd.enable = true;

time.timeZone = userConf.timezone;
i18n.defaultLocale = userConf.locale;
Expand Down
1 change: 1 addition & 0 deletions modules/linux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@
./ssh.nix
./fonts.nix
./gnupg.nix
./fwupd.nix
];
}
20 changes: 20 additions & 0 deletions modules/linux/fwupd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
userConf,
config,
lib,
pkgs,
...
}:

let
cfg = config.my.fwupd;
in
{
options.my = {
fwupd.enable = lib.mkEnableOption "enable fwudp";
};

config = lib.mkIf cfg.enable {
services.fwupd.enable = true;
};
}

0 comments on commit 4400a84

Please sign in to comment.