20 lines
396 B
Nix
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;};
|
||
|
};
|
||
|
}
|