Replace LightDM with greetd
This commit is contained in:
parent
446aa835dd
commit
d36734ecfc
|
@ -2,18 +2,32 @@
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
|
||||||
{
|
let
|
||||||
|
swayRun = writeShellScript "sway-startup-script" ''
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
export MOZ_USE_XINPUT2=1
|
||||||
|
export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots
|
||||||
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
|
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
|
||||||
|
export GIT_CONFIG_NOSYSTEM=true
|
||||||
|
export SYSTEMD_LESS=FRSMK
|
||||||
|
export LIBVA_DRIVER_NAME=iHD
|
||||||
|
|
||||||
|
exec sway $@
|
||||||
|
'';
|
||||||
|
|
||||||
|
in {
|
||||||
# Display manager
|
# Display manager
|
||||||
services.xserver.enable = true;
|
services.greetd = {
|
||||||
services.xserver.displayManager = {
|
enable = true;
|
||||||
defaultSession = "sway";
|
settings = rec {
|
||||||
autoLogin = {
|
initial_session = {
|
||||||
enable = true;
|
command = swayRun;
|
||||||
user = "coolneng";
|
user = "coolneng";
|
||||||
};
|
};
|
||||||
lightdm = {
|
default_session = initial_session;
|
||||||
enable = true;
|
|
||||||
greeter.enable = false;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -35,21 +49,8 @@ with pkgs;
|
||||||
kanshi
|
kanshi
|
||||||
kitty
|
kitty
|
||||||
qt5.qtwayland
|
qt5.qtwayland
|
||||||
glib
|
xdg-utils
|
||||||
];
|
];
|
||||||
extraSessionCommands = ''
|
|
||||||
export MOZ_ENABLE_WAYLAND=1
|
|
||||||
export MOZ_USE_XINPUT2=1
|
|
||||||
export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots
|
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
||||||
export SDL_VIDEODRIVER=wayland
|
|
||||||
export XDG_SESSION_TYPE=wayland
|
|
||||||
export XDG_CURRENT_DESKTOP=sway
|
|
||||||
export NVIM_LISTEN_ADDRESS=/tmp/nvimsocket
|
|
||||||
export GIT_CONFIG_NOSYSTEM=true
|
|
||||||
export SYSTEMD_LESS=FRSMK
|
|
||||||
export LIBVA_DRIVER_NAME=iHD
|
|
||||||
'';
|
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue