From a585939d9bd5d25ef4c308c4198e3aac510b4d66 Mon Sep 17 00:00:00 2001 From: ooks-io Date: Sat, 4 Nov 2023 22:49:26 +1300 Subject: [PATCH] added greetd --- system/common/opt/greetd.nix | 36 ++++++++++++++++++++++++++++++++++ system/ookst480s/ookst480s.nix | 1 + 2 files changed, 37 insertions(+) create mode 100644 system/common/opt/greetd.nix 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 ];