From 8b7e9a45bc462ed6ac4254007eb5a0a369496670 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Wed, 10 Aug 2022 18:22:35 +0200 Subject: [PATCH] fix gdm defaulting to x11 (set defaultSession) --- nixos/default.nix | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/nixos/default.nix b/nixos/default.nix index 276eb46d..f1ad7584 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -48,7 +48,7 @@ kernelPackages = pkgs.linuxPackages_zen; kernelParams = [ "mitigations=off" ]; - plymouth.enable = true; + # plymouth.enable = true; loader.systemd-boot.enable = true; loader.systemd-boot.configurationLimit = 5; loader.systemd-boot.editor = false; @@ -70,10 +70,16 @@ { users = [ "christoph" ]; commands = [ - { - command = "/etc/profiles/per-user/christoph/bin/gamemoderun"; - options = [ "SETENV" "NOPASSWD" ]; - } + # Launch gamemode without password because it is annoying + # { + # command = "/etc/profiles/per-user/christoph/bin/gamemoderun"; + # options = [ "SETENV" "NOPASSWD" ]; + # } + # { + # command = "${pkgs.gamemode}/libexec/cpugovctl"; + # options = [ "SETENV" "NOPASSWD" ]; + # } + # We allow running flatpak without password so flatpaks can be installed from the hm config (needs sudo) { command = "/run/current-system/sw/bin/flatpak"; @@ -135,6 +141,7 @@ enable = true; # Startx replaces the displaymanager so default (lightdm) isn't used, start to shell + # Sadly using this with gnome-session doesn't really work # displayManager.startx.enable = true; # Plasma (X11) @@ -144,14 +151,16 @@ # Gnome (Wayland) displayManager.gdm.enable = true; + # I had problems with gdm defaulting to X11, after I added this it stopped although I don't know if this + # was the sole reason + displayManager.defaultSession = "gnome"; displayManager.gdm.wayland = true; # This is actually the default desktopManager.gnome.enable = true; - # HomeManager gnome.gnome-keyring.enable = true; wacom.enable = true; # Enable touchpad support (enabled default in most desktopManager). - # libinput.enable = true; + libinput.enable = true; }; # XDG