Add treefmt-nix for formatting all the files

This commit is contained in:
ulic-youthlic 2025-06-06 11:02:49 +08:00
parent 1a9a4243fe
commit ceecc82aae
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
11 changed files with 151 additions and 52 deletions

35
pkgs/radicle-explorer.nix Normal file
View file

@ -0,0 +1,35 @@
{
pkgs,
rootPath,
}:
(pkgs.radicle-explorer.withConfig {
preferredSeeds = [
{
hostname = "seed.youthlic.fun";
port = 443;
scheme = "https";
}
{
hostname = "ash.radicle.garden";
port = 443;
scheme = "https";
}
{
hostname = "seed.radicle.xyz";
port = 443;
scheme = "https";
}
{
hostname = "seed.radicle.garden";
port = 443;
scheme = "https";
}
];
}).overrideAttrs (prev: {
postInstall =
(prev.postInstall or "")
+ ''
ln -s ${rootPath + "/assets/radicle-explorer/youthlic-seed-header.png"} $out/images/youthlic-seed-header.png
ln -s ${rootPath + "/assets/radicle-explorer/youthlic-seed-avatar.jpg"} $out/images/youthlic-seed-avatar.jpg
'';
})