switch to regreet cause looks cooler and also fix swaylock
This commit is contained in:
parent
343d912cf3
commit
8a58fe6db3
1 changed files with 26 additions and 1 deletions
|
@ -6,7 +6,12 @@
|
|||
}:
|
||||
let
|
||||
swayConfig = pkgs.writeText "greetd-sway-config" ''
|
||||
exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l; swaymsg exit"
|
||||
# https://github.com/swaywm/sway/issues/5732#issuecomment-1583336383
|
||||
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
||||
exec hash dbus-update-activation-environment 2>/dev/null && \
|
||||
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP
|
||||
|
||||
exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit"
|
||||
bindsym Mod4+shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'What do you want to do?' \
|
||||
|
@ -60,6 +65,25 @@ in
|
|||
nvidiaPatches = false;
|
||||
};
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/158025
|
||||
security.pam.services.swaylock = {};
|
||||
|
||||
programs.regreet = {
|
||||
enable = true;
|
||||
settings = {
|
||||
GTK = {
|
||||
application_prefer_dark_theme = true;
|
||||
cursor_theme_name = "Bibata-Modern-Classic";
|
||||
font_name = "JetBrains Mono 16";
|
||||
icon_theme_name = "Papirus-Dark";
|
||||
theme_name = "Catppuccin-Mocha-Standard-Green-dark";
|
||||
};
|
||||
env = {
|
||||
GTK_USE_PORTAL = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
material-design-icons
|
||||
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||
|
@ -159,6 +183,7 @@ in
|
|||
settings = {
|
||||
default_session = {
|
||||
command = "${pkgs.sway}/bin/sway --config ${swayConfig}";
|
||||
user = "greeter";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue