nixos-config/modules/workstation/desktop.nix

24 lines
439 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
with lib;
let
usersHasSway = builtins.any
(user:
config.home-manager.users.${user}.desktop.enableSwayStack
)
(builtins.attrNames config.machineUsers);
in
{
programs.sway = {
enable = usersHasSway;
};
xdg.portal = mkIf usersHasSway {
enable = true;
wlr.enable = true;
2024-03-23 19:59:07 +01:00
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
];
};
}