From 93e377be7a87c6cbba050aec790dd0568a6d90ef Mon Sep 17 00:00:00 2001 From: larstvei Date: Sun, 24 Aug 2025 13:06:51 +0200 Subject: [PATCH] Start configuring hyprland --- home/desktop/default.nix | 31 ++++++++++++++++++++++++++++++- system/nixos/default.nix | 7 +++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/home/desktop/default.nix b/home/desktop/default.nix index 9c736b0..37c08d0 100644 --- a/home/desktop/default.nix +++ b/home/desktop/default.nix @@ -1,4 +1,4 @@ -{ zen-browser, ... }: +{ pkgs, zen-browser, ... }: { imports = [ zen-browser.homeModules.beta @@ -23,4 +23,33 @@ # find more options here: https://mozilla.github.io/policy-templates/ }; }; + + home.packages = [ pkgs.rofi-wayland ]; + programs.kitty.enable = true; + + wayland.windowManager.hyprland = { + enable = true; + settings = { + # Mod key (SUPER) + "$mod" = "SUPER"; + "$shiftMod" = "SUPER_SHIFT"; + + bind = [ + "$mod, RETURN, exec, kitty" + "$mod, E, exec, emacsclient -c" + "$mod, Q, killactive" + "$mod, SPACE, exec, rofi -show drun" + + "$mod, H, movefocus, l" + "$mod, J, movefocus, d" + "$mod, K, movefocus, u" + "$mod, L, movefocus, r" + + "$shiftMod, H, movewindow, l" + "$shiftMod, J, movewindow, d" + "$shiftMod, K, movewindow, u" + "$shiftMod, L, movewindow, r" + ]; + }; + }; } diff --git a/system/nixos/default.nix b/system/nixos/default.nix index fb1c704..5d8de27 100644 --- a/system/nixos/default.nix +++ b/system/nixos/default.nix @@ -9,4 +9,11 @@ programs._1password.enable = true; programs._1password-gui.enable = true; + + programs.hyprland = { + enable = true; + withUWSM = true; + package = pkgs.hyprland; + portalPackage = pkgs.xdg-desktop-portal-hyprland; + }; }