nixos/system/sway.nix

20 lines
396 B
Nix
Raw Normal View History

{
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;};
};
}