nixos-configs/modules/desktop/desktop-environment/home/style.nix

50 lines
1 KiB
Nix
Raw Normal View History

{
config,
pkgs,
self,
...
}: let
inherit (config.vars) configDir;
cursorTheme = self.legacyPackages.${pkgs.system}.dracula.hyprcursor;
cursorThemeName = "Dracula-cursors";
hyprcursorThemeName = "Dracula-hyprcursor";
cursorSize = "24";
in {
2024-04-21 14:57:38 -04:00
imports = [
../../home/theme
2024-07-06 03:07:47 -04:00
../../home/hyprpaper.nix
2024-04-21 14:57:38 -04:00
];
home.file.".local/share/icons/${hyprcursorThemeName}".source = cursorTheme;
wayland.windowManager.hyprland = {
settings = {
envd = [
"XCURSOR_THEME, ${cursorThemeName}"
"XCURSOR_SIZE, ${cursorSize}"
];
exec-once = [
"hyprctl setcursor ${hyprcursorThemeName} ${cursorSize}"
2024-07-06 03:07:47 -04:00
"hyprpaper"
];
windowrule = [
"size 1231 950,title:^(Open Folder)$"
"float,title:^(Open Folder)$"
"size 1231 950,title:^(Open File)$"
"float,title:^(Open File)$"
];
layerrule = [
"noanim, selection"
];
# This file should only be used for theming
source = ["${configDir}/hypr/main.conf"];
};
};
}