diff --git a/modules/greetd/default.nix b/modules/greetd/default.nix index 91b6c6d..9062a74 100644 --- a/modules/greetd/default.nix +++ b/modules/greetd/default.nix @@ -27,18 +27,46 @@ in }; }; }; - environment.systemPackages = with pkgs; [ greetd.gtkgreet quintom-cursor-theme papirus-icon-theme arc-theme ]; + + programs.regreet = { + enable = true; + settings = { + background = { + path = ../../home-manager/modules/sway/wallpapers/river-2560.png; + fit = "Cover"; + }; + + GTK = { + application_prefer_dark_theme = true; + theme_name = "elementary"; + cursor_theme = "elementary"; + icon_theme_name = "elementary"; + font_name = "Iosevka Aile 16"; + }; + + commands = { + reboot = [ "systemctl" "reboot" ]; + poweroff = [ "systemctl" "poweroff" ]; + }; + }; + }; + + security.pam.services.greetd.u2fAuth = false; + + environment.systemPackages = with pkgs; [ pantheon.elementary-gtk-theme pantheon.elementary-icon-theme ]; + + # exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css; swaymsg exit" environment.etc = { "greetd/sway-config" = { text = '' # `-l` activates layer-shell mode. Notice that `swaymsg exit` will run after gtkgreet. - exec "${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -s /etc/greetd/gtkgreet.css; swaymsg exit" - bindsym Mod4+shift+f exec swaynag \ - -t warning \ - -m 'What do you want to do?' \ - -b 'Poweroff' 'systemctl poweroff' \ - -b 'Reboot' 'systemctl reboot' + exec "${pkgs.greetd.regreet}/bin/regreet; swaymsg exit" + # bindsym Mod4+shift+f exec swaynag \ + # -t warning \ + # -m 'What do you want to do?' \ + # -b 'Poweroff' 'systemctl poweroff' \ + # -b 'Reboot' 'systemctl reboot' include /etc/sway/config.d/* ''; user = "greeter";