nixos-config/modules/workstation/desktop.nix

26 lines
511 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
{
2024-04-07 16:55:08 +02:00
programs.sway = mkIf usersHasSway {
enable = true;
wrapperFeatures.gtk = true;
};
xdg.portal = mkIf usersHasSway {
enable = true;
2024-04-07 17:14:02 +02:00
xdgOpenUsePortal = true;
wlr.enable = true;
2024-04-07 17:14:02 +02:00
extraPortals = with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-kde
];
};
}