20 lines
341 B
Nix
20 lines
341 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;
|
|
};
|
|
}
|