summary refs log tree commit diff
path: root/nixos/modules/services/wayland/cage.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/wayland/cage.nix')
-rw-r--r--nixos/modules/services/wayland/cage.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/wayland/cage.nix b/nixos/modules/services/wayland/cage.nix
index a32b81a916f..15b4e7163f9 100644
--- a/nixos/modules/services/wayland/cage.nix
+++ b/nixos/modules/services/wayland/cage.nix
@@ -24,7 +24,7 @@ in {
   };
 
   options.services.cage.program = mkOption {
-    type = types.path;
+    type = types.str;
     default = "${pkgs.xterm}/bin/xterm";
     defaultText = literalExpression ''"''${pkgs.xterm}/bin/xterm"'';
     description = ''
@@ -50,6 +50,7 @@ in {
       wants = [ "dbus.socket" "systemd-logind.service" "plymouth-quit.service"];
       wantedBy = [ "graphical.target" ];
       conflicts = [ "getty@tty1.service" ];
+      environment = { "LIBSEAT_BACKEND" = "logind"; };
 
       restartIfChanged = false;
       unitConfig.ConditionPathExists = "/dev/tty1";