fix(modules/dgn-records): Add enable option

This commit is contained in:
sinavir 2024-10-18 11:47:55 +02:00
parent 1a05ea3a9a
commit c0435e694d

View file

@ -1,6 +1,17 @@
{ config, ... }:
{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.dgn-records;
in
{
options.dgn-records.enable = mkEnableOption "Arkheon deployment recording." // {
default = true;
};
config = mkIf cfg.enable {
services.arkheon.record = {
enable = true;
@ -10,4 +21,5 @@
};
age-secrets.sources = [ ./. ];
};
}