moar options

This commit is contained in:
Kopatz
2024-04-16 21:20:04 +02:00
parent a61bf01275
commit 9d79d01c5e
16 changed files with 132 additions and 57 deletions

View File

@@ -1,3 +1,15 @@
{config, lib, ...}:
with lib;
let
cfg = config.kop.hardware.firmware;
in
{
services.fwupd.enable = true;
options.kop.hardware.firmware = {
enable = mkEnableOption "Enables firmware";
};
config = mkIf cfg.enable {
services.fwupd.enable = true;
};
}