Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Switch to tuigreet
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuavio committed Oct 5, 2023
1 parent 1ed22c4 commit cacf231
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions module/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,15 @@ in
};
};

services.greetd.enable = true;

programs.regreet = {
services.greetd = {
enable = true;
settings = lib.mkIf cfg.ocrOptimizations {
GTK = {
font_name = "Inconsolata 16";
application_prefer_dark_theme = true;
settings = {
default_session = {
# Dont want to have to specifically --sessions want it to use default sessions dir XDG_DATA_DIRS/share/{xsessions, wayland-sessions}
# tuigreet does not check XDG_DATA_DIRS for sessions it checks /usr/share/wayland-sessions
# tuigreet stores last logined in users into /var/cache/ !!! ARGGG!!! Again!!! First regreet now this argggg!
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --user-menu --remember --remember-user-session"
+ " --sessions ${cfg.services.xserver.displayManager.sessionData.desktops}/share/wayland-sessions";
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion test/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ nixos-lib.runTest {
testScript = ''
machine.start()
machine.wait_for_unit("greetd")
machine.wait_for_text("Welcome back!")
machine.wait_for_text("Authenticate into machine")
'';
}
];
Expand Down

0 comments on commit cacf231

Please sign in to comment.