mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 21:11:54 -05:00
22 lines
442 B
Nix
22 lines
442 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";
|
|
};
|
|
}
|