nixos/home/desktop/wayland/hyprland.nix

41 lines
954 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
./common.nix
./swaylock.nix
./eww.nix
./waybar.nix
../common/gtk.nix
../common/dunst.nix
../common/rofi.nix
../xorg/xresources.nix
];
home.packages = with pkgs; [
swayimg
hyprpaper
];
programs.rofi.package = pkgs.rofi-wayland;
xdg.configFile."hypr" = {
source = ./config/hypr;
# recursive = true;
# text = "# test";
};
xsession.enable = true;
programs.keychain.enableXsessionIntegration = true;
wayland.windowManager.hyprland = {
enable = true;
xwayland = {
enable = true;
hidpi = true;
};
};
}