parent
ab11fd9452
commit
146d9eac0f
|
@ -2,31 +2,18 @@
|
||||||
|
|
||||||
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
|
|
||||||
|
|
||||||
exec sway $@
|
|
||||||
'';
|
|
||||||
|
|
||||||
in {
|
|
||||||
# Display manager
|
# Display manager
|
||||||
services.greetd = {
|
services.xserver.enable = true;
|
||||||
enable = true;
|
services.xserver.displayManager = {
|
||||||
settings = rec {
|
defaultSession = "sway";
|
||||||
initial_session = {
|
autoLogin = {
|
||||||
command = swayRun;
|
enable = true;
|
||||||
user = "coolneng";
|
user = "coolneng";
|
||||||
};
|
};
|
||||||
default_session = initial_session;
|
lightdm = {
|
||||||
|
enable = true;
|
||||||
|
greeter.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -48,8 +35,20 @@ in {
|
||||||
kanshi
|
kanshi
|
||||||
kitty
|
kitty
|
||||||
qt5.qtwayland
|
qt5.qtwayland
|
||||||
xdg-utils
|
glib
|
||||||
];
|
];
|
||||||
|
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
|
||||||
|
'';
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue