bvm-nixosmgmt: add rundeck

This commit is contained in:
Luke Granger-Brown 2021-04-10 17:20:35 +00:00
parent 9c1c7ec985
commit 00cb06aff2
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ config, lib, depot, ... }:
let
inherit (lib) mkEnableOption mkOption mkIf types;
cfg = config.services.rundeck;
in {
options.services.rundeck = {
enable = mkEnableOption "rundeck";
package = mkOption {
default = depot.pkgs.rundeck-bin;
defaultText = "depot.pkgs.rundeck-bin";
type = types.package;
};
};
config = mkIf cfg.enable {
systemd.services.rundeckd = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
ExecStart = "${cfg.package}/bin/rundeckd -b /var/lib/rundeck";
StateDirectory = "rundeck";
};
};
};
}

View file

@ -6,6 +6,7 @@
{
imports = [
../lib/bvm.nix
../../../nix/pkgs/rundeck-bin/module.nix
];
# Networking!
@ -19,5 +20,7 @@
};
my.ip.tailscale = "100.65.226.19";
services.rundeck.enable = true;
system.stateVersion = "21.05";
}