feat(nixos): add Hyprland to home-manager

This commit is contained in:
Mohammad Rafiq 2025-02-22 16:09:55 +08:00
parent a7986e8f8f
commit 8b43e47c2a
2 changed files with 58 additions and 1 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, pkgs, inputs, ... }:
{
home.username = "rafiq";
@ -35,6 +35,32 @@
};
};
wayland.windowManager.hyprland = {
enable = true;
# Set these to null to use the packages defined in the system config.
package = null;
portalPackage = null;
plugins = with pkgs.hyprlandPlugins; [
# borders-plus-plus
# inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.<plugin>
# hypr-dynamic-cursors # requires notifications set up
];
settings = {
"$mainMod" = "SUPER"; # Sets the modifier key to Windows key
"$terminal" = "kitty";
bind = [
"$mainMod, Q, exec, $terminal"
"$mainMod, W, killactive"
];
debug = {
disable_logs = false;
};
};
};
home.stateVersion = "24.11";
programs.home-manager.enable = true;
}