nix-dotfiles/programs/hypr/default.nix

30 lines
1 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}
${builtins.readFile ./settings.conf}
${builtins.readFile ./nvidia.conf}
2023-11-20 01:31:41 -08:00
${builtins.readFile ./keybinds.conf}
${builtins.readFile ./xwaylandvideobridge.conf}
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
inputs.hyprland-contrib.packages.${pkgs.system}.grimblast # Screenshot tool
xwaylandvideobridge # Allows screensharing with xwayland apps
];
# Hyprland screenshot tool
2024-01-20 14:03:54 -08:00
xdg.configFile."hypr-scripts" = {
source = rootPath + "/scripts";
target = "hypr/scripts";
executable = true;
};
2023-11-20 01:31:41 -08:00
}