summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/default.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-10-03 22:56:53 -0500
committerGitHub <noreply@github.com>2018-10-03 22:56:53 -0500
commit1ffe83caa7c521366780233f02c1ae092a20a782 (patch)
tree7e44c6431dada15cff84c2ae5b677802c55aac9e /nixos/modules/services/x11/display-managers/default.nix
parent06961cccd08bf99fe757ad7162086e37b5b28bda (diff)
parentf26153754a1b6ac0d72adde9c75e1473463b4dbb (diff)
downloadnixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.tar
nixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.tar.gz
nixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.tar.bz2
nixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.tar.lz
nixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.tar.xz
nixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.tar.zst
nixpkgs-1ffe83caa7c521366780233f02c1ae092a20a782.zip
Merge pull request #42846 from ambrop72/optimus-prime-config-master
nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
Diffstat (limited to 'nixos/modules/services/x11/display-managers/default.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix
index 357fa8ce8f3..26b79730dd3 100644
--- a/nixos/modules/services/x11/display-managers/default.nix
+++ b/nixos/modules/services/x11/display-managers/default.nix
@@ -222,6 +222,17 @@ in
         description = "List of arguments for the X server.";
       };
 
+      setupCommands = mkOption {
+        type = types.lines;
+        default = "";
+        description = ''
+          Shell commands executed just after the X server has started.
+
+          This option is only effective for display managers for which this feature
+          is supported; currently these are LightDM, GDM and SDDM.
+        '';
+      };
+
       sessionCommands = mkOption {
         type = types.lines;
         default = "";