summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/brockman.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2025-10-23 14:58:43 +0200
committertv <tv@krebsco.de>2025-10-23 14:58:43 +0200
commit9ffa98a93b88ca24a1cf1995b9559cec5b66d74a (patch)
tree4b5a6450d1574fad132cf7e9fade84ce1f3ec9e2 /krebs/3modules/brockman.nix
parentfac37c6eda435dd421983dc1ad80257d39805aa7 (diff)
parent4832701fadccdf5faceb96cecf274b9d57f3196b (diff)
Merge remote-tracking branch 'krebs/master'
Diffstat (limited to 'krebs/3modules/brockman.nix')
-rw-r--r--krebs/3modules/brockman.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/3modules/brockman.nix b/krebs/3modules/brockman.nix
index 3f0dd0861..a3acf83cf 100644
--- a/krebs/3modules/brockman.nix
+++ b/krebs/3modules/brockman.nix
@@ -6,6 +6,7 @@ let
in {
options.krebs.brockman = {
enable = mkEnableOption "brockman";
+ package = mkPackageOption pkgs "brockman" { };
config = mkOption { type = types.attrs; }; # TODO make real config here
};
@@ -26,7 +27,7 @@ in {
serviceConfig = {
Restart = "always";
ExecStart = ''
- ${pkgs.brockman}/bin/brockman ${pkgs.writeText "brockman.json" (builtins.toJSON cfg.config)}
+ ${cfg.package}/bin/brockman ${pkgs.writeText "brockman.json" (builtins.toJSON cfg.config)}
'';
User = config.users.extraUsers.brockman.name;
PrivateTmp = true;