Kieran's opinionated (and probably slightly dumb) nix config
1{ pkgs, ... }:
2let
3 tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
4in
5{
6 services.greetd = {
7 enable = true;
8 settings = {
9 default_session = {
10 command = "${tuigreet} --time -g 'WARNING: UNAUTHORIZED ACCESS WILL RESULT IN TERMINATION OF SESSION. IDENTIFY YOURSELF' --remember --cmd Hyprland";
11 user = "greeter";
12 };
13 };
14 };
15
16 # this is a life saver.
17 # literally no documentation about this anywhere.
18 # might be good to write about this...
19 # https://www.reddit.com/r/NixOS/comments/u0cdpi/tuigreet_with_xmonad_how/
20 systemd.services.greetd.serviceConfig = {
21 Type = "idle";
22 StandardInput = "tty";
23 StandardOutput = "tty";
24 StandardError = "journal"; # Without this errors will spam on screen
25 # Without these bootlogs will spam on screen
26 TTYReset = true;
27 TTYVHangup = true;
28 TTYVTDisallocate = true;
29 };
30
31 #environment.etc."greetd/environments".text = ''
32 # Hyprland
33 # fish
34 # bash
35 #'';
36}