forked from DGNum/infrastructure
Tom Hubrecht
ecbad0a638
This adds subdirectories for the different types of systems, for the modules and the machines
25 lines
448 B
Nix
25 lines
448 B
Nix
{ 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;
|
|
|
|
tokenFile = config.age.secrets."__arkheon-token_file".path;
|
|
|
|
url = "https://arkheon.dgnum.eu";
|
|
};
|
|
|
|
age-secrets.sources = [ ./. ];
|
|
};
|
|
}
|