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" +}