grace/dots
dotfiles/nix configs
git clone https://git.gae.moe/grace/dots
003ed04
main
1{ ...} : 2 3{ 4services . zipline = { 5enable = true ; 6settings = { 7CORE_PORT = 4567 ; 8CORE_TRUST_PROXY = "true" ; 9DATASOURCE_LOCAL_DIRECTORY = "/mnt/ext/files" ; 10FEATURES_USER_REGISTRATION = "false" ; 11FEATURES_OAUTH_REGISTRATION = "true" ; 12OAUTH_BYPASS_LOCAL_LOGIN = "true" ; 13OAUTH_OIDC_CLIENT_ID = "zipline" ; 14OAUTH_OIDC_AUTHORIZE_URL = "https://auth.gae.moe/api/oidc/authorization" ; 15OAUTH_OIDC_TOKEN_URL = "https://auth.gae.moe/api/oidc/token" ; 16OAUTH_OIDC_USERINFO_URL = "https://auth.gae.moe/api/oidc/userinfo" ; 17OAUTH_OIDC_REDIRECT_URI = "https://l.gae.moe/api/auth/oauth/oidc" ; 18}; 19environmentFiles = [ "/etc/secrets/zipline.env" ]; 20}; 21users . groups . zipline = { }; 22users . users . zipline = { 23isSystemUser = true ; 24group = "zipline" ; 25}; 26systemd . services . zipline = { 27unitConfig . RequiresMountsFor = [ "/mnt/ext" ]; 28serviceConfig . ReadWritePaths = [ "/mnt/ext/files" ]; 29}; 30systemd . tmpfiles . rules = [ "d /mnt/ext/files 0750 zipline zipline -" ]; 31services . nginx . virtualHosts . "l.gae.moe" . locations . "/" . proxyPass = "http://127.0.0.1:4567" ; 32}