format
This commit is contained in:
parent
e50b2c45b0
commit
c2dabc2dc5
1 changed files with 20 additions and 13 deletions
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue