mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: generate wallpaper
This commit is contained in:
@@ -1,11 +1,24 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
generatedWallpaper = pkgs.runCommand "wallpaper.png" {} ''
|
||||
${inputs.wallpaper-generator.packages.x86_64-linux.wp-gen}/bin/wallpaper-generator lines \
|
||||
--output $out \
|
||||
${lib.concatMapStringsSep " "
|
||||
(n: "--base0${lib.toHexString n}=${config.lib.stylix.colors.withHashtag."base0${lib.toHexString n}"}")
|
||||
(lib.range 0 15)}
|
||||
'';
|
||||
in {
|
||||
# https://danth.github.io/stylix/tricks.html
|
||||
stylix.image = inputs.wallpapers.outPath + "/meteora/rodrigo-soares-250630.jpg";
|
||||
# stylix.image = inputs.wallpapers.outPath + "/meteora/rodrigo-soares-250630.jpg";
|
||||
stylix.image = generatedWallpaper;
|
||||
|
||||
environment.etc."stylix/wallpaper.png".source = generatedWallpaper;
|
||||
|
||||
# stylix.polarity = "either";
|
||||
stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/${
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user