fix gdm defaulting to x11 (set defaultSession)
This commit is contained in:
@ -48,7 +48,7 @@
|
|||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxPackages_zen;
|
||||||
kernelParams = [ "mitigations=off" ];
|
kernelParams = [ "mitigations=off" ];
|
||||||
|
|
||||||
plymouth.enable = true;
|
# plymouth.enable = true;
|
||||||
loader.systemd-boot.enable = true;
|
loader.systemd-boot.enable = true;
|
||||||
loader.systemd-boot.configurationLimit = 5;
|
loader.systemd-boot.configurationLimit = 5;
|
||||||
loader.systemd-boot.editor = false;
|
loader.systemd-boot.editor = false;
|
||||||
@ -70,10 +70,16 @@
|
|||||||
{
|
{
|
||||||
users = [ "christoph" ];
|
users = [ "christoph" ];
|
||||||
commands = [
|
commands = [
|
||||||
{
|
# Launch gamemode without password because it is annoying
|
||||||
command = "/etc/profiles/per-user/christoph/bin/gamemoderun";
|
# {
|
||||||
options = [ "SETENV" "NOPASSWD" ];
|
# 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)
|
# We allow running flatpak without password so flatpaks can be installed from the hm config (needs sudo)
|
||||||
{
|
{
|
||||||
command = "/run/current-system/sw/bin/flatpak";
|
command = "/run/current-system/sw/bin/flatpak";
|
||||||
@ -135,6 +141,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Startx replaces the displaymanager so default (lightdm) isn't used, start to shell
|
# 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;
|
# displayManager.startx.enable = true;
|
||||||
|
|
||||||
# Plasma (X11)
|
# Plasma (X11)
|
||||||
@ -144,14 +151,16 @@
|
|||||||
|
|
||||||
# Gnome (Wayland)
|
# Gnome (Wayland)
|
||||||
displayManager.gdm.enable = true;
|
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
|
displayManager.gdm.wayland = true; # This is actually the default
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
# HomeManager gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
wacom.enable = true;
|
wacom.enable = true;
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# libinput.enable = true;
|
libinput.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# XDG
|
# XDG
|
||||||
|
Reference in New Issue
Block a user