21 lines
393 B
Nix
21 lines
393 B
Nix
{ 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;
|
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
};
|
|
}
|