diff options
Diffstat (limited to 'os/wm')
| -rw-r--r-- | os/wm/niri.nix | 13 | ||||
| -rw-r--r-- | os/wm/wm.nix | 25 |
2 files changed, 30 insertions, 8 deletions
diff --git a/os/wm/niri.nix b/os/wm/niri.nix index 248ab9e..58d27af 100644 --- a/os/wm/niri.nix +++ b/os/wm/niri.nix @@ -1,4 +1,11 @@ -{ inputs, config, lib, username, ... }: +{ + inputs, + config, + lib, + username, + pkgs, + ... +}: let cfg = config.os.wm.niri; in @@ -8,11 +15,11 @@ in options.os.wm.niri.enable = lib.mkEnableOption "Niri"; config = lib.mkIf cfg.enable { - # nixpkgs.overlays = [ inputs.niri.overlays.niri ]; + nixpkgs.overlays = [ inputs.niri.overlays.niri ]; programs.niri = { enable = true; - # package = pkgs.niri-unstable; + package = pkgs.niri-unstable; }; os.srv.compat.enable = true; 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" ]; + }; }; }; }; |
