From 737042f363cfd1b13358cc4b97dbbacad7c5b197 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 30 Sep 2024 00:09:33 -0700 Subject: [PATCH] feat!: replace sddm with greetd --- modules/wm/default.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/modules/wm/default.nix b/modules/wm/default.nix index f623846..70c7c28 100644 --- a/modules/wm/default.nix +++ b/modules/wm/default.nix @@ -1,7 +1,24 @@ +{ pkgs, ... }: { - services.displayManager.sddm = { + services.greetd = { enable = true; - wayland.enable = true; + settings = { + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd Hyprland --remember --greeting 'Access is restricted to authorized personnel only.'"; + user = "greeter"; + }; + }; + }; + + 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; }; programs.sway = {