commit 16f4a9c871b5417b9ed17e7666c1b266dd8de464 Author: emily Date: Fri Nov 1 15:02:03 2024 +0100 Initial commit uwu diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a806510 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# ---> Nix +# Ignore build outputs from performing a nix-build or `nix build` command +result +result-* + diff --git a/README.md b/README.md new file mode 100644 index 0000000..6826acf --- /dev/null +++ b/README.md @@ -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). diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..873d3e5 --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..6048e24 --- /dev/null +++ b/flake.nix @@ -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 + ''; + }); + }; +} diff --git a/media/SylviaRitter_Speedpainting_15012023_7680x4320px.png b/media/SylviaRitter_Speedpainting_15012023_7680x4320px.png new file mode 100644 index 0000000..dc17392 Binary files /dev/null and b/media/SylviaRitter_Speedpainting_15012023_7680x4320px.png differ