nixcfg/nixosModules/desktopConfig/windowManagers/sway/default.nix
2024-03-31 08:09:03 -04:00

19 lines
438 B
Nix

{ pkgs, lib, config, ... }: {
options = {
desktopConfig.windowManagers.sway.enable =
lib.mkEnableOption "Sway window manager session.";
};
config = lib.mkIf config.desktopConfig.windowManagers.sway.enable {
desktopConfig.displayManagers.lightdm.enable = lib.mkDefault true;
programs.sway.enable = true;
services.dbus.packages = [ pkgs.gcr ];
environment.sessionVariables.NIXOS_OZONE_WL = "1";
};
}