nixos/home/desktop/hyprland.nix

35 lines
960 B
Nix

{ pkgs, ... }:
let
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
hyprland = (import flake-compat {
src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/2df0d034bc4a18fafb3524401eeeceaa6b23e753.tar.gz";
}).defaultNix;
in
{
imports = [
hyprland.homeManagerModules.default
./swaylock.nix
./eww.nix
./waybar.nix
./gtk.nix
./dunst.nix
./rofi.nix
];
home.packages = with pkgs; [
pipewire
wireplumber
wl-clipboard
swayimg
hyprpaper
];
programs.rofi.package = pkgs.rofi-wayland;
xdg.configFile."hypr/common.conf".source = ./config/hypr/common.conf;
xdg.configFile."hypr/keybinds.conf".source = ./config/hypr/keybinds.conf;
xdg.configFile."hypr/window-rules.conf".source = ./config/hypr/window-rules.conf;
wayland.windowManager.hyprland = {
enable = true;
xwayland = { enable = true; hidpi = true; };
};
}