nixos-config/configs/workhorse/seafile.nix

27 lines
573 B
Nix
Raw Normal View History

2019-10-24 02:20:38 +02:00
{ 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;
}