summaryrefslogtreecommitdiff
path: root/os/wm/wm.nix
blob: 82547220f94eb2056b2eb6291f69f87c6532cd86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, lib, pkgs, ... }:
let
  cfg = config.os.wm;
in
{
  imports = [
    ./niri.nix
  ];

  options.os.wm.enable = lib.mkEnableOption "enables shared wm features";
  config = lib.mkIf cfg.enable {
    services.dbus.enable = true;

    xdg.portal = {
      enable = true;
      xdgOpenUsePortal = true;
      extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
    };
  };
}