2024-10-18 11:47:55 +02:00
|
|
|
{ config, lib, ... }:
|
2024-03-08 23:11:31 +01:00
|
|
|
|
2024-10-18 11:47:55 +02:00
|
|
|
let
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
2024-03-08 23:11:31 +01:00
|
|
|
|
2024-10-18 11:47:55 +02:00
|
|
|
cfg = config.dgn-records;
|
|
|
|
in
|
2024-03-08 23:11:31 +01:00
|
|
|
|
2024-10-18 11:47:55 +02:00
|
|
|
{
|
|
|
|
options.dgn-records.enable = mkEnableOption "Arkheon deployment recording." // {
|
|
|
|
default = true;
|
2024-03-08 23:11:31 +01:00
|
|
|
};
|
|
|
|
|
2024-10-18 11:47:55 +02:00
|
|
|
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 = [ ./. ];
|
|
|
|
};
|
2024-03-08 23:11:31 +01:00
|
|
|
}
|