nixos/home/hyprland/default.nix

52 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-07 09:26:16 +01:00
{ config, lib, pkgs, hyprland, anyrun, wallpapers, catppuccin-themes, ... }:
{
imports = [
hyprland.homeManagerModules.default
../alacritty/tiling.nix
./waybar/default.nix
./swaync/default.nix
./rofi/default.nix
./anyrun/default.nix
./swaylock.nix
./gtk.nix
];
home.packages = [ pkgs.libsForQt5.polkit-kde-agent ];
programs = {
emacs.package = pkgs.emacs29-pgtk;
firefox.package = pkgs.firefox-wayland;
rofi = {
package = pkgs.rofi-wayland;
terminal = "${pkgs.alacritty}/bin/alacritty";
2023-09-05 18:44:29 +01:00
pass.extraConfig = ''
backend=wtype
clibpoard_backend=wl-clipboard
'';
};
};
services.kanshi = {
enable = true;
systemdTarget = "hyprland-session.target";
};
wayland.windowManager.hyprland = {
enable = true;
package = null; # Use package from nixpkgs
xwayland = {
enable = true;
hidpi = true;
};
extraConfig = import ./config.nix {
2023-09-07 09:26:16 +01:00
inherit config pkgs anyrun;
theme = catppuccin-themes.hyprland;
};
};
xdg.configFile = {
"hypr/hyprpaper.conf".text = ''
preload = ${wallpapers.outputs.default}
wallpaper = ,${wallpapers.outputs.default}
'';
"hypr/macchiato.conf".source = ./macchiato.conf;
2023-09-04 09:13:06 +01:00
"hypr/extra.conf" = lib.mkDefault { text = ""; };
};
}