Merge pull request #82080 from flokli/cage-fix-condition-path-exists

nixos/cage: move ConditionPathExists to service config
This commit is contained in:
Maximilian Bosch
2020-03-09 10:11:32 +01:00
committed by GitHub

View File

@@ -51,6 +51,7 @@ in {
conflicts = [ "getty@tty1.service" ];
restartIfChanged = false;
unitConfig.ConditionPathExists = "/dev/tty1";
serviceConfig = {
ExecStart = ''
${pkgs.cage}/bin/cage \
@@ -59,7 +60,6 @@ in {
'';
User = cfg.user;
ConditionPathExists = "/dev/tty1";
IgnoreSIGPIPE = "no";
# Log this user with utmp, letting it show up with commands 'w' and