aboutsummaryrefslogtreecommitdiff
path: root/nixos/greetd.nix
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-08-20 11:18:51 +0800
committerZhongheng Liu <z.liu@outlook.com.gr>2024-08-20 11:18:51 +0800
commit3084dbcb7f1176fe4c0aaa05972e5b793b682ba3 (patch)
tree9d720cd38f16d449c230e1c197c3f100e2ff4266 /nixos/greetd.nix
parent370669f99f4001072ee5819e76896fa7445d8674 (diff)
downloadnixos-configuration-3084dbcb7f1176fe4c0aaa05972e5b793b682ba3.tar.gz
nixos-configuration-3084dbcb7f1176fe4c0aaa05972e5b793b682ba3.tar.bz2
nixos-configuration-3084dbcb7f1176fe4c0aaa05972e5b793b682ba3.zip
feat: grub and greetd setups
grub: changed theme to distro-grub-themes kernel: upgraded to linux zen kernel greetd: configured tuigreet with greetd to replace sddm
Diffstat (limited to 'nixos/greetd.nix')
-rw-r--r--nixos/greetd.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/nixos/greetd.nix b/nixos/greetd.nix
new file mode 100644
index 0000000..212cde7
--- /dev/null
+++ b/nixos/greetd.nix
@@ -0,0 +1,33 @@
+{
+ pkgs,
+ config,
+ lib,
+ ...
+}: 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;
+ };
+}