2023-10-22 17:12:42 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
usersHasSway = builtins.any
|
|
|
|
(user:
|
|
|
|
config.home-manager.users.${user}.desktop.enableSwayStack
|
|
|
|
)
|
|
|
|
(builtins.attrNames config.machineUsers);
|
|
|
|
in
|
|
|
|
{
|
2024-02-23 22:18:06 +01:00
|
|
|
programs.sway = {
|
|
|
|
enable = usersHasSway;
|
|
|
|
};
|
|
|
|
|
2023-10-22 17:12:42 +02:00
|
|
|
xdg.portal = mkIf usersHasSway {
|
|
|
|
enable = true;
|
|
|
|
wlr.enable = true;
|
|
|
|
};
|
|
|
|
}
|