diff options
| author | makefu <github@syntax-fehler.de> | 2024-12-15 21:24:10 +0100 | 
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2024-12-15 21:24:10 +0100 | 
| commit | 5de4b1af802b2fad323bc16764e489cdeb30c716 (patch) | |
| tree | 14801b56223b4e337fcc7c05d952f6442a0fdc1d | |
| parent | 636d6ee89b15e38a44442c041d255ef8743e5efa (diff) | |
brockman: add package option
| -rw-r--r-- | krebs/3modules/brockman.nix | 3 | 
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;  | 
