add(fwupd)
This commit is contained in:
parent
b32f5d48d8
commit
a9ec420b9e
2 changed files with 22 additions and 0 deletions
21
modules/nixos/system/fwupd/default.nix
Normal file
21
modules/nixos/system/fwupd/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.system.fwupd;
|
||||
in
|
||||
{
|
||||
options.${namespace}.system.fwupd = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable fwupd.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.fwupd.enable = true;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue