add pinchflat
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
./mpd.nix
|
||||
./network.nix
|
||||
./nginx.nix
|
||||
./pinchflat.nix
|
||||
./syncthing.nix
|
||||
./taskchampion.nix
|
||||
./topology.nix
|
||||
|
||||
@@ -69,6 +69,11 @@
|
||||
url = "https://git.turifer.dev";
|
||||
icon = "sh:gitea";
|
||||
}
|
||||
{
|
||||
title = "Pinchflat";
|
||||
url = "https://pinchflat.home.rpqt.fr";
|
||||
icon = "sh:pinchflat";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
31
machines/genepi/pinchflat.nix
Normal file
31
machines/genepi/pinchflat.nix
Normal 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}";
|
||||
};
|
||||
}
|
||||
@@ -13,6 +13,7 @@ let
|
||||
"glance"
|
||||
"grafana"
|
||||
"images"
|
||||
"pinchflat"
|
||||
"rss"
|
||||
"tw"
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user