mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-22 06:46:59 +03:00
Add configurable systemd service name to nixos module
This commit is contained in:
parent
da2141cd93
commit
91e67df844
@ -26,9 +26,14 @@ let
|
|||||||
visible = "shallow";
|
visible = "shallow";
|
||||||
};
|
};
|
||||||
_systemd = mkOption { internal = true; };
|
_systemd = mkOption { internal = true; };
|
||||||
|
serviceName = mkOption {
|
||||||
|
description = "The name of the Arion project's systemd service";
|
||||||
|
type = types.str;
|
||||||
|
default = "arion-${name}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
_systemd.services."arion-${name}" = {
|
_systemd.services.${config.serviceName} = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "sockets.target" ];
|
after = [ "sockets.target" ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user