nixcfg/nixosModules/desktop/sway/default.nix

27 lines
496 B
Nix

{
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;
services = {
geoclue2.enable = lib.mkDefault true;
};
programs = {
sway = {
enable = true;
package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx;
};
};
};
}