nixos/services/desktop/hyprland.nix

47 lines
910 B
Nix
Raw Normal View History

2024-02-21 21:53:58 +01:00
{
system,
config,
lib,
pkgs,
hyprland,
hy3,
...
}:
with lib;
mkIf (elem "desktop::hyprland" config.machine.services) {
programs.hyprland = {
enable = true;
package = hyprland.packages."${system}".hyprland;
xwayland.enable = false;
};
environment.systemPackages =
[
hy3.packages."${system}".hy3
]
++ (with pkgs; [
kanagawa
eww-wayland
rofi-wayland
hyprpicker
waybar
swaybg
]);
# TODO: Refactor
environment = {
etc."xdg/gtk-2.0/gtkrc".text = ''
gtk-key-theme-name = "Kanagawa-BL"
'';
etc."xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-key-theme-name = Kanagawa-BL
'';
sessionVariables.NIXOS_OZONE_WL = "1";
};
qt = {
enable = true;
platformTheme = "gnome";
style = "adwaita-dark";
};
}