turned off visualizer for ncmpcpp, enabled restic server.

This commit is contained in:
Gabe Venberg 2024-09-28 15:14:40 +02:00
parent 7784c07a01
commit 879744abb8
5 changed files with 79 additions and 30 deletions

View file

@ -0,0 +1,27 @@
{
inputs,
config,
pkgs,
lib,
...
}: let
port = "8090";
in {
services.restic.server = {
enable = true;
appendOnly = true;
dataDir = "/backup/restic";
extraFlags = [
"--htpasswd-file ${config.sops.secrets.gabevenberg-draft-credentials.path}"
"--private-repos"
];
listenAddress = "127.0.0.1:${port}";
};
services.nginx.virtualHosts."restic.gabevenberg.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:${port}";
};
};
}