From a2f8aa7bc66ba28ea2ef506bd3325d58f6184833 Mon Sep 17 00:00:00 2001 From: Tomas Rivera <137088692+Totorile1@users.noreply.github.com> Date: Thu, 26 Feb 2026 09:20:06 +0100 Subject: [PATCH] Added hyprland module --- hosts/laptop/configuration.nix | 2 ++ hosts/laptop/home.nix | 1 + modules/home-manager/hyprland.nix | 9 +++++++++ 3 files changed, 12 insertions(+) create mode 100644 modules/home-manager/hyprland.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 29179e0..88907eb 100755 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -40,6 +40,8 @@ # Enable the GNOME Desktop Environment. services.displayManager.gdm.enable = true; services.desktopManager.gnome.enable = true; +# enable hyprland WM +programs.hyprland.enable = true; # Configure keymap in X11 services.xserver.xkb = { diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index c584619..3899358 100755 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -10,6 +10,7 @@ imports = [ ../../modules/home-manager/git.nix ../../modules/home-manager/ssh.nix ../../modules/home-manager/fastfetch.nix +../../modules/home-manager/hyprland.nix ]; diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix new file mode 100644 index 0000000..3dfaa93 --- /dev/null +++ b/modules/home-manager/hyprland.nix @@ -0,0 +1,9 @@ +{ config, pkgs, ... }: + +{ + #refer to https://wiki.hypr.land/Nix/Hyprland-on-Home-Manager/ + wayland.windowManager.hyprland.enable = true; + + #hint Electron apps to use on wayland; + home.sessionVariables.NIXOS_OZONE_WL="1" +}