nixos-config/modules/workstation/desktop.nix

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