From 0f40bf1932578adef54690fe21b9b19285ef10e0 Mon Sep 17 00:00:00 2001 From: Pedro Rey Anca Date: Wed, 21 Aug 2024 01:37:45 +0200 Subject: [PATCH] Add autologin --- modules/core/wayland.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/core/wayland.nix b/modules/core/wayland.nix index a0bc9f4..c90bd34 100644 --- a/modules/core/wayland.nix +++ b/modules/core/wayland.nix @@ -1,6 +1,7 @@ { inputs, pkgs, + username, ... }: { programs.hyprland.enable = true; @@ -29,6 +30,9 @@ }; cageArgs = ["-s" "-m" "last"]; # Only show on the last monitor }; - + services.greetd.settings.initial_session = { + command = "hyprland"; + user = "${username}"; + }; environment.sessionVariables.XKB_DEFAULT_LAYOUT = "es"; }