blob: 3d7210376116670842ffdadf6559c18e8f3aa0e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ 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 ];
config.common = {
"org.freedesktop.impl.portal.ScreenCast" = "gnome";
"default" = [ "gtk" ];
};
};
};
}
|