mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
feat: better handles (#70)
This commit is contained in:
parent
af19b1e78b
commit
c84611bdf1
5 changed files with 129 additions and 37 deletions
|
|
@ -11,6 +11,12 @@ let
|
|||
light = pkgs.writeText "tmux-theme-light.conf" (theme.renderTmux "light");
|
||||
};
|
||||
|
||||
wallpaperGenConfig = pkgs.writeText "wallpaper-gen-config.json" (
|
||||
builtins.toJSON theme.wallpapers.generation
|
||||
);
|
||||
|
||||
wallpaperPython = pkgs.python3.withPackages (ps: [ ps.pillow ]);
|
||||
|
||||
mkScript =
|
||||
{
|
||||
file,
|
||||
|
|
@ -79,9 +85,10 @@ let
|
|||
wallpaper-gen = mkScript {
|
||||
name = "wallpaper-gen";
|
||||
file = ./wallpaper-gen.sh;
|
||||
runtimeInputs = with pkgs; [ uv ];
|
||||
runtimeInputs = [ wallpaperPython ];
|
||||
replacements = {
|
||||
"@WALLPAPER_GEN_PY@" = "${./wallpaper-gen.py}";
|
||||
"@WALLPAPER_GEN_CONFIG@" = "${wallpaperGenConfig}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue