Kieran's opinionated (and probably slightly dumb) nix config

feat: add tuigreet

+40
+1
README.md
··· 60 60 - [hyprwm/contrib](https://github.com/hyprwm/contrib) 61 61 - [gtk with home manager](https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/) 62 62 - [setting up the proper portals](https://github.com/NixOS/nixpkgs/issues/274554) 63 + - [tuigreet setup](https://github.com/sjcobb2022/nixos-config/blob/29077cee1fc82c5296908f0594e28276dacbe0b0/hosts/common/optional/greetd.nix)
+3
moonlark/configuration.nix
··· 26 26 # ./hyprland 27 27 28 28 ./pam.nix 29 + 30 + # tuigreet 31 + ./greetd.nix 29 32 ]; 30 33 31 34 nixpkgs = {
+36
moonlark/greetd.nix
··· 1 + { pkgs, ... }: 2 + let 3 + tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet"; 4 + in 5 + { 6 + services.greetd = { 7 + enable = true; 8 + settings = { 9 + default_session = { 10 + command = "${tuigreet} --time --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 + }