alqueva/hosts/shared/niri.nix

46 lines
852 B
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
}: let
cfg = config.alqueva.wms.niri;
in {
options.alqueva.wms.niri = {
enable = lib.mkEnableOption "niri";
package = lib.mkPackageOption pkgs "niri" {};
};
config = lib.mkIf cfg.enable {
2025-02-04 11:10:02 +00:00
environment.systemPackages = [
cfg.package
];
xdg.portal = {
2025-01-25 18:20:07 +00:00
config = {
niri = {
"org.freedesktop.impl.portal.Secret" = [
"gnome-keyring"
];
2025-02-04 11:10:02 +00:00
default = [
"gnome"
"gtk"
];
2025-01-25 18:20:07 +00:00
};
};
2025-02-04 11:10:02 +00:00
configPackages = [cfg.package];
extraPortals = [
pkgs.xdg-desktop-portal-gnome
pkgs.xdg-desktop-portal-gtk
];
};
2025-03-05 14:32:32 +00:00
services = {
displayManager.sessionPackages = [cfg.package];
gnome.gnome-keyring.enable = true;
};
2025-02-04 11:10:02 +00:00
alqueva.support.wayland = true;
};
}