mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-21 21:50:21 +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";
|
||||
};
|
||||
_systemd = mkOption { internal = true; };
|
||||
serviceName = mkOption {
|
||||
description = "The name of the Arion project's systemd service";
|
||||
type = types.str;
|
||||
default = "arion-${name}";
|
||||
};
|
||||
};
|
||||
config = {
|
||||
_systemd.services."arion-${name}" = {
|
||||
_systemd.services.${config.serviceName} = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "sockets.target" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user