forked from DGNum/infrastructure
fix(modules/dgn-records): Add enable option
This commit is contained in:
parent
1a05ea3a9a
commit
c0435e694d
1 changed files with 20 additions and 8 deletions
|
@ -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 = [ ./. ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue