This commit is contained in:
Charlotte 🦝 Delenk 2023-05-02 17:18:10 +01:00
parent e50b2c45b0
commit c2dabc2dc5
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -29,7 +29,8 @@
["${pkgs.lotte-art}/2023-04-16-baltnwolf-lottediaperplushies-messy.jxl" "-gravity" "center" "-background" "white" "-extent" "5333x3000"]
];
fixupImage = instructions: pkgs.stdenv.mkDerivation {
fixupImage = instructions:
pkgs.stdenv.mkDerivation {
name = "bg.jxl";
src = pkgs.emptyDirectory;
nativeBuildInputs = [pkgs.imagemagick];
@ -71,7 +72,13 @@
hexToInt = s: lib.foldl (state: new: state * 16 + hexToIntList.${new}) 0 (lib.strings.stringToCharacters s);
seed = hexToInt (self.shortRev or nixpkgs.shortRev);
bg = choose (if withNSFW then validBGsNSFW else validBGs) seed;
bg =
choose (
if withNSFW
then validBGsNSFW
else validBGs
)
seed;
color = n:
config.environment.graphical.colors.main."${builtins.toString n}";