nixos/system/sway.nix
Evie Litherland-Smith 6dd70aa58e Fixed a couple of sway issues
Made swayfx the standard, added nixos system-level module to enable
and autostart with greetd; Includes fix for missing session that
should be fixed in later nixpkgs versions

Fixed formatting for waybar workspaces module, wasn't showing active
or empty workspaces correctly
2024-04-12 21:17:54 +01:00

20 lines
396 B
Nix

{
config,
pkgs,
...
}: {
programs.sway = {
enable = true;
package =
pkgs.swayfx.overrideAttrs
(old: {passthru.providedSessions = ["sway"];});
wrapperFeatures.gtk = true;
};
services.greetd.settings = let
command = "${config.programs.sway.package}/bin/sway";
in {
default_session = {inherit command;};
initial_session = {inherit command;};
};
}