about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSophie Taylor <sophie@spacekitteh.moe>2022-06-19 11:40:41 +1000
committerGitHub <noreply@github.com>2022-06-19 11:40:41 +1000
commitf13c61a3b9c91c75e3dafaeb0c155f2b3da64c6d (patch)
tree54d6400eb7725a44bf09016236ace8aa95f8ed1b /nixos
parenta19f2c688bcd06d89bdc8848918eaff0e0991aa4 (diff)
xpra: Add the ability to perform a start-desktop
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/display-managers/xpra.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/xpra.nix b/nixos/modules/services/x11/display-managers/xpra.nix
index c23e479140f09..f4ab2b4bd682f 100644
--- a/nixos/modules/services/x11/display-managers/xpra.nix
+++ b/nixos/modules/services/x11/display-managers/xpra.nix
@@ -25,6 +25,13 @@ in
         type = types.nullOr types.str;
         description = "Bind xpra to TCP";
       };
+      
+      desktop = mkOption {
+        type = types.nullOr types.str;
+        default = null;
+        example = "gnome-shell";
+        description = "Start a desktop environment instead of seamless mode";
+      };
 
       auth = mkOption {
         type = types.str;
@@ -222,7 +229,7 @@ in
     services.xserver.displayManager.job.execCmd = ''
       ${optionalString (cfg.pulseaudio)
         "export PULSE_COOKIE=/run/pulse/.config/pulse/cookie"}
-      exec ${pkgs.xpra}/bin/xpra start \
+      exec ${pkgs.xpra}/bin/xpra ${if cfg.desktop == null then "start" else "start-desktop --start=${cfg.desktop}"} \
         --daemon=off \
         --log-dir=/var/log \
         --log-file=xpra.log \