add pinchflat

This commit is contained in:
2025-08-25 07:21:21 +02:00
parent 78556d6159
commit 1b0963680c
4 changed files with 38 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
./mpd.nix
./network.nix
./nginx.nix
./pinchflat.nix
./syncthing.nix
./taskchampion.nix
./topology.nix

View File

@@ -69,6 +69,11 @@
url = "https://git.turifer.dev";
icon = "sh:gitea";
}
{
title = "Pinchflat";
url = "https://pinchflat.home.rpqt.fr";
icon = "sh:pinchflat";
}
];
}
];

View File

@@ -0,0 +1,31 @@
{
config,
pkgs,
...
}:
{
services.pinchflat = {
enable = true;
secretsFile = config.clan.core.vars.generators.pinchflat.files.env.path;
mediaDir = "/home/rpqt/Music";
};
clan.core.vars.generators.pinchflat = {
files.env = { };
runtimeInputs = [
pkgs.coreutils
pkgs.openssl
];
script = ''
echo "$SECRET_KEY_BASE=$(openssl rand -hex 64)" > "$out"/env
'';
};
clan.core.state.pinchflat.folders = [ "/var/lib/pinchflat" ];
services.nginx.virtualHosts."pinchflat.home.rpqt.fr" = {
forceSSL = true;
useACMEHost = "home.rpqt.fr";
locations."/".proxyPass = "http://127.0.0.1:${builtins.toString config.services.pinchflat.port}";
};
}

View File

@@ -13,6 +13,7 @@ let
"glance"
"grafana"
"images"
"pinchflat"
"rss"
"tw"
];