bvm-nixosmgmt: add rundeck
This commit is contained in:
parent
9c1c7ec985
commit
00cb06aff2
2 changed files with 30 additions and 0 deletions
27
nix/pkgs/rundeck-bin/module.nix
Normal file
27
nix/pkgs/rundeck-bin/module.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue