nix-dotfiles/programs/hypr/default.nix

44 lines
1.4 KiB
Nix
Raw Normal View History

{ inputs, pkgs, ... }:
2024-01-20 14:03:54 -08:00
let rootPath = ./.; in
2023-11-20 01:31:41 -08:00
{
wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.extraConfig = ''
${builtins.readFile ./window_rules.conf}
2024-02-21 15:04:08 -08:00
${builtins.readFile ./league_rules.conf}
${builtins.readFile ./settings.conf}
${builtins.readFile ./nvidia.conf}
2023-11-20 01:31:41 -08:00
${builtins.readFile ./keybinds.conf}
${builtins.readFile ./xwaylandvideobridge.conf}
2024-04-08 23:03:47 -07:00
exec-once=${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1
2024-04-14 02:44:42 -07:00
env = HYPRCURSOR_THEME,miku
env = HYPRCURSOR_SIZE,64
2023-11-20 01:31:41 -08:00
'';
2024-01-20 14:03:54 -08:00
# wayland.windowManager.hyprland.enableNvidiaPatches = true;
home.packages = with pkgs; [
socat # For hyprland scripts
swww # Wallpaper engine
wlr-randr # Xrandr for wayland
wl-clipboard # Clipboard manager for wayland
2024-01-20 14:03:54 -08:00
xdg-desktop-portal-hyprland # XDP for hyprland
hyprpicker # Colorpicker, needed for screenshot tool
2024-04-14 02:44:42 -07:00
hyprcursor # Hyprland cursor
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast # Screenshot tool
xwaylandvideobridge # Allows screensharing with xwayland apps
2024-04-08 23:03:47 -07:00
polkit-kde-agent # Polkit handler
];
2024-04-14 02:44:42 -07:00
# Hyprland screenshot tool
2024-01-20 14:03:54 -08:00
xdg.configFile."hypr-scripts" = {
source = rootPath + "/scripts";
target = "hypr/scripts";
executable = true;
};
2024-04-14 02:44:42 -07:00
xdg.dataFile."hypr-icons" = {
source = rootPath + "/icons";
target = "icons/";
recursive = true;
};
2023-11-20 01:31:41 -08:00
}