Files
Gabriel Fontes be533b7e49 refactor(themes): drop projects/themes, generate colorschemes purely
With the matugen IFD replaced by lib/material-you.nix, projects/themes only existed
to cache that IFD, so remove it:

- Move wallpapers/ to the repo root. Each wallpaper now carries its material-you
  source color (extracted once, committed in list.json) in passthru, so schemes
  generate with no image decoding at eval.
- Expose pkgs.wallpapers via the additions overlay, and a 'wallpapers'
  linkFarm package so Hydra builds+caches every image (imgur is upstream).
- Fold colorscheme generation into modules/home-manager/colors.nix: it now
  calls outputs.lib.material-you.generateColorscheme on the source color (the
  wallpaper's sourceColor or a hex) instead of the matugen derivation. No IFD,
  no generatedDrv.
- wallpaper option is now types.package (preserves the sourceColor passthru).
- Drop the themes flake input and its Hydra job; wallpapers ride the pkgs job.

Verified: atlas evaluates to a full toplevel; its colors match matugen 2.4.1
for the aenami-dawn seed (roles exact, one custom channel +-1 LSB).

Assisted-by: pi (opus-4.8)
2026-07-04 18:39:47 -03:00

14 lines
410 B
Nix

{lib, ...}: let
inherit (lib) types mkOption;
in {
options.wallpaper = mkOption {
# A package (image derivation), so its `sourceColor` passthru survives for
# the colorscheme. Coerces to its path in string context (e.g. hyprpaper).
type = types.nullOr types.package;
default = null;
description = ''
Wallpaper image (a package, typically `pkgs.wallpapers.<name>`).
'';
};
}