diff options
| author | adikro <adikro@disroot.org> | 2026-01-19 11:43:42 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-01-19 11:43:42 +0100 |
| commit | d2571482b4eb5660fd92727efb4e5254df06e45e (patch) | |
| tree | b94282d6f250a82587c25689cba8a1dc1a2f2d96 /os/wm/wm.nix | |
| parent | 760a0edc2937fab375898bbd2f2a3011eb8c9756 (diff) | |
a lot of changes
Diffstat (limited to 'os/wm/wm.nix')
| -rw-r--r-- | os/wm/wm.nix | 25 |
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" ]; + }; }; }; }; |
