1

Modules/Color: Move wallpaper selection from hyprland module to color module

This commit is contained in:
2025-07-20 15:17:53 +02:00
parent 90f7dc8845
commit a67029abe7
18 changed files with 121 additions and 80 deletions

View File

@ -235,7 +235,7 @@ in {
background = [
{
path = "${config.paths.nixflake}/wallpapers/${hyprland.wallpaper}.jpg";
path = "${config.paths.nixflake}/wallpapers/${color.wallpaper}.jpg";
blur_passes = 3;
blur_size = 10;
monitor = "";
@ -305,12 +305,12 @@ in {
preload = let
mkPreload = name: "${config.paths.nixflake}/wallpapers/${name}.jpg";
in
hyprland.wallpapers |> builtins.map mkPreload;
color.wallpapers |> builtins.map mkPreload;
wallpaper = let
mkWallpaper = monitor:
"${monitor}, "
+ "${config.paths.nixflake}/wallpapers/${hyprland.wallpaper}.jpg";
+ "${config.paths.nixflake}/wallpapers/${color.wallpaper}.jpg";
in
hyprland.monitors
|> builtins.attrNames

View File

@ -17,31 +17,6 @@
description = "Keyboard layout variant";
};
# A bit dumb, but I want a single location where those are defined.
# Only supposed to be set from here.
wallpapers = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "Available wallpapers";
# Run eza -1 | sd ".jpg" "" | sd "^" "\"" | sd "\$" "\"" | sd "\"\"" "" | wl-copy
# in ~/NixFlake/wallpapers/
default = [
"Blade-Runner-Downwards"
"Blade-Runner-Upwards"
"City-Outlook"
"Everest-Fishing"
"Foggy-Lake"
"Three-Bears"
];
};
wallpaper = lib.mkOption {
type = lib.types.enum wallpapers.default;
example = "Three-Bears";
description = "Wallpaper to use";
default = "Foggy-Lake";
};
dunst.enable = lib.mkEnableOption "Enable dunst notification daemon";
monitors = lib.mkOption {