From 0bcf8a90edf7bf067463836cd217c9e867b65f3b Mon Sep 17 00:00:00 2001 From: rafiq Date: Thu, 27 Feb 2025 06:37:32 +0800 Subject: [PATCH] feat(hyprland): add initial configuration options --- users/rafiq/default.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/users/rafiq/default.nix b/users/rafiq/default.nix index f544f92..c97734e 100644 --- a/users/rafiq/default.nix +++ b/users/rafiq/default.nix @@ -18,6 +18,32 @@ }; }; + wayland.windowManager.hyprland = { + enable = true; + systemd.enable = false; # Required for UWSM compat + systemd.variables = ["--all"]; + # Use tha packages defined in the system configuration + package = null; + portalPackage = null; + settings = { + monitor = [ + "HDMI-A-2, 3840x2160@60, 0x0, 2" + "DP-4, 1920x1080@60, -1920x0, 1" + ", preferred, auto, 1" + ]; + "$terminal" = "kitty"; + "$browser" = "firefox"; + "$mainMod" = "SUPER"; + bind = [ + "$mainMod, Q, exec, uwsm app -- $terminal" + "$mainMod, W, killactive" + "$mainMod, E, exec, uwsm app -- $browser" + "$mainMod, M, exec, uwsm stop" + ]; + }; + }; + + home.stateVersion = "25.05"; programs.home-manager.enable = true; }