add swayfx

This commit is contained in:
TheWanderingCrow 2024-12-29 09:49:20 -05:00
parent 76ddc2347f
commit 3b875048a6

View file

@ -0,0 +1,35 @@
{
inputs,
pkgs,
lib,
config,
...
}: {
config.programs.sway = lib.mkIf config.desktop.swayfx.enable {
package = pkgs.swayfx;
enable = true;
xwayland.enable = true;
extraPackages = with pkgs;
[
foot
wofi
swaynotificationcenter
udiskie
polkit_gnome
swayidle
sway-audio-idle-inhibit
swaylock-effects
sway-contrib.grimshot
waybar
wl-clipboard
xorg.xrandr
];
};
programs.dconf.enable = true;
config.environment = lib.mkIf config.desktop.swayfx.enable {
sessionVariables = {
NIXOS_OZONE_WL = "1";
};
};
}