mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 19:29:17 -05:00
24 lines
442 B
Nix
24 lines
442 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 = lib.mkDefault true;
|
|
|
|
programs = {
|
|
sway = {
|
|
enable = true;
|
|
package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".swayfx;
|
|
};
|
|
};
|
|
};
|
|
}
|