summaryrefslogtreecommitdiff
path: root/hermes/nixos/gui/niri.nix
blob: afaf9b3a23db3c51b7628f0b1db1f82bd8c0a67a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{lib, config, pkgs, ...}: {
  options.niri.enable = lib.mkEnableOption "niri wm";

  config = lib.mkIf config.niri.enable {
    programs = {
      niri.enable = true;
    };

    # Portals
    xdg.portal = {
      config."niri" = {
        default = [ "kde" "gtk" ];
      };

      extraPortals = with pkgs; [
        kdePackages.xdg-desktop-portal-kde
        xdg-desktop-portal-gtk
      ];
    };

    # Packages
    environment.systemPackages = with pkgs; [
      xwayland-satellite
      fuzzel waybar
    ];
  };
}