From dceec409cca15df4f1a94de85f95890b52d233b0 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Mon, 9 Mar 2020 00:47:49 +0100 Subject: [PATCH] nixos/cage: move ConditionPathExists to service config It doesn't belong into [Service]: > Unknown key name 'ConditionPathExists' in section 'Service', ignoring. --- nixos/modules/services/wayland/cage.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/wayland/cage.nix b/nixos/modules/services/wayland/cage.nix index cac5c042ec16..c59ca9983a6c 100644 --- a/nixos/modules/services/wayland/cage.nix +++ b/nixos/modules/services/wayland/cage.nix @@ -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