summary refs log tree commit diff
path: root/nixos/modules/services/wayland/cage.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-03-09 00:47:49 +0100
committerFlorian Klink <flokli@flokli.de>2020-03-09 00:47:49 +0100
commitdceec409cca15df4f1a94de85f95890b52d233b0 (patch)
tree0222890faa8504abdca670657beac99bcd61055f /nixos/modules/services/wayland/cage.nix
parenta2aacb6989f6d7be058654f73c2719df60c0a6a8 (diff)
downloadnixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.tar
nixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.tar.gz
nixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.tar.bz2
nixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.tar.lz
nixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.tar.xz
nixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.tar.zst
nixpkgs-dceec409cca15df4f1a94de85f95890b52d233b0.zip
nixos/cage: move ConditionPathExists to service config
It doesn't belong into [Service]:
> Unknown key name 'ConditionPathExists' in section 'Service', ignoring.
Diffstat (limited to 'nixos/modules/services/wayland/cage.nix')
-rw-r--r--nixos/modules/services/wayland/cage.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/wayland/cage.nix b/nixos/modules/services/wayland/cage.nix
index cac5c042ec1..c59ca9983a6 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