diff --git a/system/common/opt/greetd.nix b/system/common/opt/greetd.nix new file mode 100644 index 0000000..82d5d05 --- /dev/null +++ b/system/common/opt/greetd.nix @@ -0,0 +1,36 @@ +{ 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 + #''; +} diff --git a/system/ookst480s/ookst480s.nix b/system/ookst480s/ookst480s.nix index f0e211e..305bd7c 100644 --- a/system/ookst480s/ookst480s.nix +++ b/system/ookst480s/ookst480s.nix @@ -17,6 +17,7 @@ ../common/global ../common/opt/bluetooth.nix ../common/opt/vm.nix + ../common/opt/greetd.nix ];