Initial commit uwu

This commit is contained in:
emily 2024-11-01 15:02:03 +01:00
commit 16f4a9c871
Signed by: emily
GPG key ID: F6F4C66207FCF995
5 changed files with 81 additions and 0 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
# ---> Nix
# Ignore build outputs from performing a nix-build or `nix build` command
result
result-*

8
README.md Normal file
View file

@ -0,0 +1,8 @@
# florp.social branding
This repository contains all logos and the wallpaper of [florp.social](https://florp.social).
## Credits
- Thanks to Sylvia Ritter for letting us use one of her creations as the wallpaper of this fediverse instance.
You can check out her awesome work at [sylvia-ritter.com](https://sylvia-ritter.com).

27
flake.lock Normal file
View file

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1730200266,
"narHash": "sha256-l253w0XMT8nWHGXuXqyiIC/bMvh1VRszGXgdpQlfhvU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "807e9154dcb16384b1b765ebe9cd2bba2ac287fd",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

41
flake.nix Normal file
View file

@ -0,0 +1,41 @@
{
description = "Florp.social branding";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { self, nixpkgs }: let
inherit (nixpkgs) lib;
eachSystem = conf: lib.genAttrs [ "x86_64-linux" "aarch64-linux" ] conf;
in {
packages = eachSystem (system: let
pkgs = import nixpkgs {
inherit system;
overlays = lib.singleton (final: prev: {
libavif-svt = prev.libavif.overrideAttrs (finalAttrs: prevAttrs: {
cmakeFlags = prevAttrs.cmakeFlags ++ [
"-DAVIF_CODEC_SVT=ON"
];
propagatedBuildInputs = prevAttrs.propagatedBuildInputs ++ [
final.svt-av1-psy
];
});
});
};
in {
wallpaper = pkgs.runCommand "sylvia-ritter-15012023.avif" {
src = ./media/SylviaRitter_Speedpainting_15012023_7680x4320px.png;
nativeBuildInputs = with pkgs; [
imagemagick
libavif-svt
];
} ''
magick "$src" -resize 50% resize.png
avifenc -q 80 --speed 0 --codec svt --depth 8 --yuv 420 -a tune=2 \
-a enable-variance-boost=1 -a variance-boost-strength=3 -a enable-overlays=1 \
-a enable-qm=1 -a qm-min=0 -a enable-tf=1 resize.png $out
'';
});
};
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 MiB