diff options
Diffstat (limited to 'sys/wm/wm.nix')
| -rw-r--r-- | sys/wm/wm.nix | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/wm/wm.nix b/sys/wm/wm.nix index 48df857..10780e0 100644 --- a/sys/wm/wm.nix +++ b/sys/wm/wm.nix @@ -1,6 +1,23 @@ -{ ... }: +{ config, lib, pkgs, ... }: +let + cfg = config.sys.wm; +in { imports = [ ./niri.nix ]; + + options.sys.wm.enable = lib.mkEnableOption "enables shared wm features"; + + config = lib.mkIf (cfg.enable || cfg.niri.enable or false) { + services.dbus.enable = true; + + xdg.portal = { + enable = true; + wlr.enable = true; + xdgOpenUsePortal = true; + extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + config.common.default = [ "gtk" ]; + }; + }; } |
