summaryrefslogtreecommitdiffstats
path: root/modules/continuum.nix
Commit message (Collapse)AuthorAgeFilesLines
* systemd-credentials: make the options part of systemd.servicestv14 hours1-6/+1
| | | | | | | | | | | | systemd.services.<name>.restartIfCredentialsChange and reloadIfCredentialsChange replace hrm.systemd.services.<name>.…; the alias for stockholm's krebs.systemd.services now points there. Units can't be made from config.systemd.services itself, so the trigger services become two templates, credentials-restart@ and credentials-reload@, which call systemctl themselves; only the path units remain per service, by their old names. Without comparing checksums any more: the path units fire when a credential is written, and nothing rewrites one unchanged.
* continuum: add packagetv12 days1-1/+2
| | | | Each instance can run a continuum of its own, pkgs.continuum by default.
* continuum: add domaintv12 days1-2/+52
| | | | | | | | An instance with a domain gets an nginx virtual host passing requests on to its HTTP API, over a Unix socket in its runtime directory. The socket is the instance's group's (continuum-<name>, made for it), which nginx's user joins; continuum makes it 0660, and the directory is 0750. The instance checks who users are itself, so requests pass on as they come.
* continuum: add usertv12 days1-1/+10
| | | | An instance runs as a dynamic user unless it names one.
* continuum: add credentialstv12 days1-1/+19
| | | | | | | credentials maps names to secret files. They reach the instance by LoadCredential, so settings refer to them as ${env:CREDENTIALS_DIRECTORY}/<name>, and the instance restarts when one changes.
* continuum: keep written files in the state directorytv12 days1-1/+25
| | | | | | | | state-file and document-file, and where they apply store-file, store-vote-record and tor.state-dir, default to files in ${env:STATE_DIRECTORY}. The defaults go in when the file is written rather than through the module system: a default that depends on other settings of the same free-form set recurses infinitely there.
* continuum: add moduletv12 days1-0/+59
hrm.continuum.instances.<name> makes a service continuum-<name> from settings, which are continuum's options, written as TOML into the store. The service runs as a dynamic user with a state directory and nothing but the network. It restarts always, as continuum exits with status 0 when a transport stops.