# https://github.com/glabrie/dotfiles/blob/main/modules/system/settings/greetd.nix { inputs, ... }: { flake.module.nixos.greetd = { pkgs, lib, ... }: { services.greetd = { enable = true; settings = { default_session = { command = "${lib.getExe pkgs.tuigreet} --time --remember --cmd niri-session"; user = "greeter"; }; }; }; systemd.services.greetd.serviceConfig = { Type = "idle"; StandardInput = "tty"; StandardOutput = "tty"; StandardError = "journal"; # Without this errors will spam on screen # Without these bootlogs will spam on screen TTYReset = true; TTYVHangup = true; TTYVTDisallocate = true; }; # Let's allow our keyring to work from the start security.pam.services.greetd.enableGnomeKeyring = true; }; }