nixcfg/nixosModules/desktop/sway/default.nix

24 lines
428 B
Nix
Raw Normal View History

{
inputs,
pkgs,
lib,
config,
...
}: {
options = {
alyraffauf.desktop.sway.enable =
lib.mkEnableOption "Sway wayland compositor.";
};
config = lib.mkIf config.alyraffauf.desktop.sway.enable {
alyraffauf.desktop.waylandComp.enable = true;
programs = {
sway = {
enable = true;
package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx;
};
};
};
}