2024-03-28 16:13:46 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
|
|
|
options = {
|
2024-03-29 08:40:42 -04:00
|
|
|
desktopConfig.windowManagers.hyprland.enable =
|
|
|
|
lib.mkEnableOption "Enables hyprland window manager session.";
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.desktopConfig.windowManagers.hyprland.enable {
|
|
|
|
|
2024-03-28 20:19:31 -04:00
|
|
|
desktopConfig.displayManagers.lightdm.enable = lib.mkDefault true;
|
2024-03-29 08:40:42 -04:00
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
programs.hyprland.enable = true;
|
|
|
|
services.power-profiles-daemon.enable = true;
|
|
|
|
services.upower.enable = true;
|
|
|
|
|
|
|
|
services.dbus.packages = [ pkgs.gcr ];
|
|
|
|
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
security.pam.services.gdm.enableKwallet = true;
|
|
|
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
|
|
|
|
|
|
|
services.gvfs.enable = true; # Mount, trash, and other functionalities
|
|
|
|
services.tumbler.enable = true; # Thumbnail support for images
|
|
|
|
|
2024-03-29 08:40:42 -04:00
|
|
|
xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = "1";
|
|
|
|
};
|
2024-03-28 16:40:23 -04:00
|
|
|
}
|