dot.nix/home/toph/common/optional/hyprland/hyprpaper/default.nix
Chris Toph dc2e697b14 Hyprland Config Refactor:
- Removed flake inputs everywhere, git flakes always broke. Idk what those bitches doing
- Moved Rules and Plugins to their own files
- Reworked binds to use a script and not the shitty nix implementation
- Installed and setup Hyprscroller
- Some Theming with colors and wallpaper with hyprpaper
2025-03-31 12:32:30 -04:00

39 lines
839 B
Nix

# Hyprpaper is used to set the wallpaper on the system
{
pkgs,
config,
...
}:
let
# wallpaper = "/home/${config.hostSpec.username}/Pictures/Wallpapers/wallpaper.jpg";
# wallpaper = "/home/${config.hostSpec.username}/Pictures/Wallpapers/wallpaper.png";
wallpaper = "/home/${config.hostSpec.username}/Pictures/Wallpapers/invincible.jpg";
in
{
# The wallpaper is set by stylix
services.hyprpaper = {
enable = true;
settings = {
ipc = "on";
splash = false;
splash_offset = 2.0;
preload = [
wallpaper
];
wallpaper = [
", ${wallpaper}"
];
};
};
home.file."Pictures/Wallpapers" = {
source = ./wallpapers;
recursive = true;
};
wayland.windowManager.hyprland.settings = {
exec-once = [
"${pkgs.hyprpaper}/bin/hyprpaper"
];
};
}