{ config, pkgs, ... }: let lib = pkgs.lib; domain = "${config.networking.hostName}.${config.networking.domain}"; mkDomain = subname: "${subname}.${domain}"; in { #services.nginx.enable = true; imports = [ ./services/pdoc.nix #../services/tt-rss.nix ]; # links.pbsds.net services.nginx.virtualHosts."links.pbsds.net" = let links-pbsds-net = pkgs.fetchFromGitea rec { name = repo; domain = "gitea.noximilien.pbsds.net"; owner = "pbsds"; repo = "links.pbsds.net"; rev = "61cd605f198a22db87af087fda34c378b03d4306"; hash = "sha256-dx19aTy8K9xkL+cO4r4huYKrlVBZMUkDcbjqxLKe8W4="; }; in { #serverAliases = map mkDomain [ "links" ]; forceSSL = true; # addSSL = true; enableACME = true; #useACMEHost = acmeDomain; root = "${links-pbsds-net}"; }; # refleksjon.no services.nginx.virtualHosts.${mkDomain "refleksjon"} = let refleksjon-net = pkgs.fetchFromGitea rec { name = repo; domain = "gitea.noximilien.pbsds.net"; owner = "pbsds"; repo = "refleksjon.net"; rev = "c1b91e369bf411e44534334595d4481cb59bd129"; sha256 = "O+lNqD2LuESKM+S+AljF2SzIxzK05xdZqiLhylTQ2ls="; }; in { forceSSL = true; # addSSL = true; enableACME = true; #useACMEHost = acmeDomain; root = "${refleksjon-net}/www.refleksjon.net"; }; # roroslyd.no services.nginx.virtualHosts.${mkDomain "roroslyd"} = let roroslyd-no = pkgs.fetchFromGitea rec { name = repo; domain = "gitea.noximilien.pbsds.net"; owner = "pbsds"; repo = "roroslyd.no"; #rev = "v${version}"; rev = "fb7b0a7e70754cf368de7d7c469dabe71b2f1c78"; sha256 = "Rud5bBUuPgIC5UAGtyuYhUtXhN174UCWDoLUWWc/n6U="; }; in { forceSSL = true; # addSSL = true; enableACME = true; #useACMEHost = acmeDomain; root = "${roroslyd-no}/www.roroslyd.no"; }; # trivial gradios /** / systemd.services.trivial-gradios-heritage-graph = { description = pkgs.python3Packages.trivial-gradios.meta.description; after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = rec { User = "trivial-gradios"; Group = "trivial-gradios"; DynamicUser = true; StateDirectory = "trivial-gradios-heritage-graph"; WorkingDirectory = "/var/lib/${StateDirectory}"; ExecStart = "${pkgs.python3Packages.trivial-gradios}/bin/trivial-gradios-heritage-graph --port 37001"; Restart = "on-failure"; }; }; services.nginx.virtualHosts.${mkDomain "gradio"} = { forceSSL = true; # addSSL = true; enableACME = true; #useACMEHost = acmeDomain; locations."/" = { root = pkgs.writeTextDir "index.html" ''
name | description |
---|---|
heritage-graph | A simple tool to greate a directed ancestry graph. |