nixos/services/desktop/hyprland.nix

63 lines
1.2 KiB
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) {
2024-05-09 13:28:32 +02:00
programs = {
dconf.enable = true;
hyprland = {
enable = true;
package = hyprland.packages."${system}".hyprland;
xwayland.enable = false;
};
};
services.xserver = {
2024-02-21 21:53:58 +01:00
enable = true;
2024-05-09 13:28:32 +02:00
displayManager.sddm = {
enable = true;
autoNumlock = true;
wayland.enable = true;
};
2024-02-21 21:53:58 +01:00
};
environment.systemPackages =
[
hy3.packages."${system}".hy3
]
2024-05-09 13:28:32 +02:00
++
(with pkgs; [
2024-02-21 21:53:58 +01:00
kanagawa
eww-wayland
rofi-wayland
hyprpicker
waybar
swaybg
2024-05-09 13:28:32 +02:00
gtk3
gnome.adwaita-icon-theme
gsettings-desktop-schemas
2024-02-21 21:53:58 +01:00
]);
# 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";
};
}