blob: a9046bb7a4e681c9bf6cbfdb271ebfbe1e133249 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
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-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" ];
};
};
};
};
}
|