nixos/cage: move ConditionPathExists to service config
It doesn't belong into [Service]: > Unknown key name 'ConditionPathExists' in section 'Service', ignoring.
This commit is contained in:
parent
a2aacb6989
commit
dceec409cc
1 changed files with 1 additions and 1 deletions
|
@ -51,6 +51,7 @@ in {
|
||||||
conflicts = [ "getty@tty1.service" ];
|
conflicts = [ "getty@tty1.service" ];
|
||||||
|
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
|
unitConfig.ConditionPathExists = "/dev/tty1";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = ''
|
ExecStart = ''
|
||||||
${pkgs.cage}/bin/cage \
|
${pkgs.cage}/bin/cage \
|
||||||
|
@ -59,7 +60,6 @@ in {
|
||||||
'';
|
'';
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
|
|
||||||
ConditionPathExists = "/dev/tty1";
|
|
||||||
IgnoreSIGPIPE = "no";
|
IgnoreSIGPIPE = "no";
|
||||||
|
|
||||||
# Log this user with utmp, letting it show up with commands 'w' and
|
# Log this user with utmp, letting it show up with commands 'w' and
|
||||||
|
|
Loading…
Reference in a new issue