wayland/niri/module.nix: init
This commit is contained in:
parent
a777db4848
commit
b23d4a3b9b
1 changed files with 31 additions and 0 deletions
31
modules/wms/wayland/niri/module.nix
Normal file
31
modules/wms/wayland/niri/module.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue