nixos-config/configs/workhorse/seafile.nix
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

26 lines
573 B
Nix

{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
statusPage = true;
virtualHosts = {
"seafile.${config.networking.hostName}.private" = {
serverAliases = [];
locations."/" = {
proxyPass = "http://${config.networking.hostName}.private:${toString config.custom.services.seafile.port}";
};
};
};
};
custom.services.seafile = {
enable = true;
hostname = "seafile.gaykraft.com";
port = 3030;
home = "/home/seafile";
};
virtualisation.docker.enable = lib.mkDefault true;
}