From 85b1242fbfcfd1c41d71ad80bbb71659fa57fb55 Mon Sep 17 00:00:00 2001 From: Mohamed Chrayed Date: Mon, 6 Apr 2026 16:15:58 +0200 Subject: [PATCH] add greetd --- modules/hyprland/sys/hyprland.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/hyprland/sys/hyprland.nix b/modules/hyprland/sys/hyprland.nix index 00959cb..7a7f360 100644 --- a/modules/hyprland/sys/hyprland.nix +++ b/modules/hyprland/sys/hyprland.nix @@ -1,11 +1,29 @@ { inputs, ... }: { - flake.nixosModules.hyprland-sys-hyprland = { pkgs, ... }: { + flake.nixosModules.hyprland-sys-hyprland = { pkgs, ... }: let + tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet"; + session = "${pkgs.hyprland}/bin/Hyprland"; + username = "mo"; + in { programs.hyprland = { enable = true; xwayland.enable = true; withUWSM = true; }; + services.greetd = { + enable = true; + settings = { + initial_session = { + command = session; + user = username; + }; + default_session = { + command = "${tuigreet} --greeting 'Welcome to NixOS!' --asterisks --remember --remember-user-session --time --cmd ${session}"; + user = "greeter"; + }; + }; + }; + environment.systemPackages = [ inputs.caelestia-shell.packages.${pkgs.stdenv.hostPlatform.system}.with-cli ];