wayland/niri/module.nix: init

This commit is contained in:
Charlie Root 2025-03-12 18:48:48 +01:00
commit b23d4a3b9b
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -0,0 +1,31 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.programs.niri;
inherit (pkgs) xdg-desktop-portal-gtk xdg-desktop-portal-gnome;
in {
programs.niri = {
enable = true;
};
programs.xwayland.enable = lib.mkForce false;
services.gnome.gnome-keyring.enable = lib.mkForce false;
environment.systemPackages = builtins.attrValues {
inherit (pkgs) wmenu swaylock;
};
xdg.portal = {
enable = lib.mkDefault true;
configPackages = [cfg.package];
# Recommended by upstream, required for screencast support
# https://github.com/YaLTeR/niri/wiki/Important-Software#portals
extraPortals = [
xdg-desktop-portal-gnome
xdg-desktop-portal-gtk
];
};
}