From 9695c1c909be4d48854690cdf47958551c2d3178 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Mon, 2 Feb 2026 19:33:21 +0100 Subject: removed hyprland, added niri --- modules/nixos/des/hyprland.nix | 30 ------------------------------ modules/nixos/des/niri.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) delete mode 100644 modules/nixos/des/hyprland.nix create mode 100644 modules/nixos/des/niri.nix (limited to 'modules/nixos') diff --git a/modules/nixos/des/hyprland.nix b/modules/nixos/des/hyprland.nix deleted file mode 100644 index 7bd77b4..0000000 --- a/modules/nixos/des/hyprland.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - # Disable X11 for Wayland-only setup - services.xserver.enable = false; - - # Enable Hyprland - programs.hyprland = { - enable = true; - }; - - # XDG portal for Wayland - xdg.portal = { - enable = true; - extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-hyprland ]; - }; - - # Required Wayland packages - environment.systemPackages = with pkgs; [ - qt6.qtwayland - qt6.qttools - hyprpolkitagent - ]; - - # Provide keyboard layout vars for Wayland environments and fallback - environment.variables = { - XKB_DEFAULT_LAYOUT = "cz"; - XKB_DEFAULT_OPTIONS = "eurosign:e,caps:escape"; - }; -} \ No newline at end of file diff --git a/modules/nixos/des/niri.nix b/modules/nixos/des/niri.nix new file mode 100644 index 0000000..6679274 --- /dev/null +++ b/modules/nixos/des/niri.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, ... }: + +{ + # Disable X11 for Wayland-only setup + services.xserver.enable = false; + + # Enable Niri + programs.niri = { + enable = true; + }; + + # XDG portal for Wayland + xdg.portal = { + enable = true; + extraPortals = with pkgs; [ xdg-desktop-portal-gtk xdg-desktop-portal-gnome ]; + }; + + # Required Wayland packages + environment.systemPackages = with pkgs; [ + qt6.qtwayland + qt6.qttools + ]; + + # Provide keyboard layout vars for Wayland environments and fallback + environment.variables = { + XKB_DEFAULT_LAYOUT = "cz"; + XKB_DEFAULT_OPTIONS = "eurosign:e,caps:escape"; + }; +} \ No newline at end of file -- cgit v1.2.3