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

feat: add tuigreet

Changed files
+40
moonlark
+1
README.md
···
- [hyprwm/contrib](https://github.com/hyprwm/contrib)
- [gtk with home manager](https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/)
- [setting up the proper portals](https://github.com/NixOS/nixpkgs/issues/274554)
+
- [tuigreet setup](https://github.com/sjcobb2022/nixos-config/blob/29077cee1fc82c5296908f0594e28276dacbe0b0/hosts/common/optional/greetd.nix)
+3
moonlark/configuration.nix
···
# ./hyprland
./pam.nix
+
+
# tuigreet
+
./greetd.nix
];
nixpkgs = {
+36
moonlark/greetd.nix
···
+
{ pkgs, ... }:
+
let
+
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
+
in
+
{
+
services.greetd = {
+
enable = true;
+
settings = {
+
default_session = {
+
command = "${tuigreet} --time --remember --cmd Hyprland";
+
user = "greeter";
+
};
+
};
+
};
+
+
# this is a life saver.
+
# literally no documentation about this anywhere.
+
# might be good to write about this...
+
# https://www.reddit.com/r/NixOS/comments/u0cdpi/tuigreet_with_xmonad_how/
+
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;
+
};
+
+
#environment.etc."greetd/environments".text = ''
+
# Hyprland
+
# fish
+
# bash
+
#'';
+
}