Sway config

This commit is contained in:
TheWanderingCrow 2024-09-23 21:38:36 -04:00
parent 9ab1050965
commit dbe515a0b1
4 changed files with 220 additions and 5 deletions

17
modules/sway/default.nix Normal file
View file

@ -0,0 +1,17 @@
{ inputs, pkgs, lib, config, ...}: {
options.sway.enable = lib.mkEnableOption "enables sway";
config = {
programs.sway = lib.mkIf config.sway.enable {
enable = true;
xwayland.enable = true;
};
};
config.environment = lib.mkIf config.sway.enable {
sessionVariables = {
NIXOS_OZONE_WL = "1";
};
};
}