summaryrefslogtreecommitdiff
path: root/os/wm/wm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'os/wm/wm.nix')
-rw-r--r--os/wm/wm.nix25
1 files changed, 20 insertions, 5 deletions
diff --git a/os/wm/wm.nix b/os/wm/wm.nix
index 3d72103..a9046bb 100644
--- a/os/wm/wm.nix
+++ b/os/wm/wm.nix
@@ -1,4 +1,9 @@
-{ config, lib, pkgs, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
let
cfg = config.os.wm;
in
@@ -8,16 +13,26 @@ in
];
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 ];
- config.common = {
- "org.freedesktop.impl.portal.ScreenCast" = "gnome";
- "default" = [ "gtk" ];
+
+ extraPortals = [
+ pkgs.xdg-desktop-portal-gnome
+ pkgs.xdg-desktop-portal-gtk
+ ];
+
+ config = {
+ common.default = [ "gtk" ];
+ niri = {
+ "org.freedesktop.impl.portal.ScreenCast" = [ "gnome" ];
+ "org.freedesktop.impl.portal.Screenshot" = [ "gnome" ];
+ "default" = [ "gtk" ];
+ };
};
};
};