feat: add niri module

This commit is contained in:
Youwen Wu 2025-01-16 21:30:58 -08:00
parent 385fd0cf1a
commit 787a4e8c41
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
4 changed files with 534 additions and 0 deletions

View file

@ -23,6 +23,7 @@ in
Whether to enable Hyprland. Sets up a default configuration at the system and user level, and installs xdg-desktop-portal-gtk.
'';
};
niri.enable = lib.mkEnableOption "Niri compositor";
};
config = lib.mkIf cfg.enable {
@ -33,6 +34,10 @@ in
programs.hyprland.enable = cfg.hyprland.enable;
programs.niri.enable = cfg.niri.enable;
programs.xwayland.enable = lib.mkIf cfg.niri.enable (lib.mkForce true);
services.xserver.enable = false;
services.xserver = {