diff options
author | Rostislav Beneš <r.dee.b.b@gmail.com> | 2017-05-07 22:27:02 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-09-28 00:18:57 +0200 |
commit | 4ef82339c9a32548d2432ca71e8aac87abe79777 (patch) | |
tree | 219dfd2e5def33e0d8afb25325c5b4cdb54a05ce /nixos/modules/services/x11 | |
parent | 4f91397c987739cc96e1dd418f79fc0d94326485 (diff) | |
download | nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.tar nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.tar.gz nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.tar.bz2 nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.tar.lz nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.tar.xz nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.tar.zst nixpkgs-4ef82339c9a32548d2432ca71e8aac87abe79777.zip |
nixos/gdm,nvidia: new options to enable GDM on Wayland and disabling it for nvidia drivers.
Diffstat (limited to 'nixos/modules/services/x11')
-rw-r--r-- | nixos/modules/services/x11/display-managers/gdm.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/gdm.nix b/nixos/modules/services/x11/display-managers/gdm.nix index b0a3ff1bb75..e68bc816aad 100644 --- a/nixos/modules/services/x11/display-managers/gdm.nix +++ b/nixos/modules/services/x11/display-managers/gdm.nix @@ -64,6 +64,14 @@ in }; }; + wayland = mkOption { + default = true; + description = '' + Allow GDM run on Wayland instead of Xserver + ''; + type = types.bool; + }; + }; }; @@ -139,6 +147,7 @@ in # presented and there's a little delay. environment.etc."gdm/custom.conf".text = '' [daemon] + WaylandEnable=${if cfg.gdm.wayland then "true" else "false"} ${optionalString cfg.gdm.autoLogin.enable ( if cfg.gdm.autoLogin.delay > 0 then '' TimedLoginEnable=true |