summary refs log tree commit diff
path: root/nixos/modules/services/misc
Commit message (Collapse)AuthorAge
* nix-daemon.nix: Make the 1.12 check less strictEelco Dolstra2017-03-21
|
* octoprint: 1.3.1 -> 1.3.2Nikolay Amiantov2017-03-21
| | | | Fix startup wizard and cleanup dependencies.
* gitlab module: explicitely create pages shared pathFranz Pletz2017-03-21
| | | | Fixes creation of backups.
* nixos/treewide: systemd.time is in manvolume 7Franz Pletz2017-03-21
| | | | cc #23396
* nix-daemon: fix autoOptimiseStore optionRobin Gloster2017-03-21
|
* Added option and description for nix store auto-optimisation.Philipp Steinpass2017-03-20
|
* Merge pull request #23963 from dtzWill/feature/irkerdJoachim F2017-03-18
|\ | | | | irker: init at 2017-02-12
| * irkerd service: initWill Dietz2017-03-17
| |
* | nixos/treewide: remove boolean examples for optionsFranz Pletz2017-03-17
|/ | | | | | | They contain no useful information and increase the length of the autogenerated options documentation. See discussion in #18816.
* nixos: Add a menu launcher for the NixOS manualBenjamin Staffin2017-03-14
|
* nixos/modules: use defaultText/literalExample where applicableJoachim Fasting2017-03-07
| | | | | Primarily to fix rendering of default values/examples but also to avoid unnecessary work.
* nixos/nix-daemon: doc: use literalExampleBjørn Forsman2017-03-05
| | | | | Makes the example more readable by not squashed everything onto one single line.
* nix-daemon: Remove a bunch of unnecessary environment variablesEelco Dolstra2017-03-03
|
* Fix incorrect $NIX_BUILD_HOOK on Nix 1.12Eelco Dolstra2017-03-03
|
* cura, curaengine: 14.04 -> 2.4.0Nikolay Amiantov2017-03-01
| | | | Move old Cura to {cura,curaengine}_stable
* apache-kafka.service: pass in log4j config more explicitlyDan Peebles2017-02-27
| | | | | | | The implicit behavior of pulling it out of the classpath seemed not to work properly and could be thrown off by other things on the classpath also providing the properties file. This guarantees that our settings stick.
* taskserver: Remove taskserver from systemPackagesaszlig2017-02-17
| | | | | | | | | | | | | This is deliberate because using the taskd binary to configure Taskserver has a good chance of messing up permissions. The nixos-taskserver tool now can manage even manual configurations, so there really is no need anymore to expose the taskd binary. If people still want to use the taskd binary at their own risk they can still add taskserver to systemPackages themselves. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* taskserver: Pass configuration via command lineaszlig2017-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Putting an include directive in the configuration file referencing a store path with the real configuration file has the disavantage that once we change the real configuration file the store path is also a different one. So we would have to replace that include directive with the new configuration file, which is very much error-prone, because whenever taskd modifies the configuration file on its own it generates a new one with *only* the key/value options and without any include directives. Another problem is that we only added the include directive on the first initalization, so whenever there is *any* configuration change, it won't affect anything. We're now passing all the configuration options via command line, because taskd treats everything in the form of --<name>=<value> to be a configuration directive. This also has the effect that we now no longer have extraConfig, because configuration isn't a file anymore. Instead we now have an attribute set that is mapped down to configuration options. Unfortunately this isn't so easy with the way taskd is configured, because there is an option called "server" and also other options like "server.cert", "server.key" and so on, which do not map very well to attribute sets. So we have an exception for the "server" option, which is now called "server.listen", because it specifies the listening address. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Fixes: #22705
* taskserver: Allow helper tool in manual configaszlig2017-02-17
| | | | | | | | | | | | | | The helper tool so far was only intended for use in automatic PKI handling, but it also is very useful if you have an existing CA. One of the main advantages is that you don't need to specify the data directory anymore and the right permissions are also handled as well. Another advantage is that we now have an uniform management tool for both automatic and manual config, so the documentation in the NixOS manual now applies to the manual PKI config as well. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* taskserver/helpertool: Fix error message on exportaszlig2017-02-17
| | | | | | | | | | | The error message displays that a specific user doesn't exist in an organisation, but uses the User object's name attribute to show which user it was. This is basically a very stupid chicken and egg problem and easily fixed by using the user name provided on the command line. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* nixos/geoip-updater: run as user 'geoip' instead of 'nobody'Bjørn Forsman2017-02-15
| | | | That way 'nobody' is prevented from messing with the databases.
* Revert "nix-daemon: default useSandbox to true"Graham Christensen2017-02-14
| | | | This reverts commit d0a086770a1be8c1f3175c195587052c5a5bfe1c.
* nix-daemon: default useSandbox to trueGraham Christensen2017-02-13
|
* ssm-agent NixOS module: initDan Peebles2017-02-13
|
* gitlab service: fix database creationFranz Pletz2017-02-13
| | | | | Providing custom a username and database name was broken. They were hardcoded to "gitlab".
* nixos/geoip-updater: new serviceBjørn Forsman2017-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GeoIP databases from MaxMind have no stable URLs and change every month (or so). Our current method of packaging these database in Nix and playing catch-up with ever-changing file hashes is a bad idea. For instance, it makes it impossible to realize old NixOS configurations. This patch adds a NixOS service that periodically updates the GeoIP databases in /var/lib/geoip-databases. Moving NixOS modules over can be done in later patches. I tried adding MD5 check, but not all databases have them, so i skipped it. We are downloading over HTTPS though, it should be good. I also tried adding zip support, but the first zip file I extracted had a different filename inside than the archive name, which breaks an assumption in this service, so I skipped that too. Changes v9 -> v10: - Pass "--max-time" to curl to set upper bound on downloads (ensures no indefinite hanging if there's problem with networking). Timeout for network connectivity check: 60s. Timeout for geoip database (each): 15m. Changes v8 -> v9: - Mention the random timer delay in the documentation for the 'interval' option. Changes v7 -> v8: - Add "RemainAfterExit=true" for the setup service, so it won't be restarted needlessly. (Thanks @danbst!) Changes v6 -> v7: - Add --skip-existing flag to geoip-updater, which skips updating existing database files. Pass that flag when we run the service on boot (and on any NixOS configuration change). (IMHO, this is somewhat a workaround for systemd persistent timers not being triggered immediately when a timer has never expired before. But it does have the nice side effect of ensuring that the installed databases always correspond to the configured ones, since the service is now always run after configuration changes.) Changes v5 -> v6: - Update database files atomically (per DB) - If a database is removed from the configuration, it'll be removed from /var/lib/geoip-databases too (on next run). - Add NixOS module assertion so that if user inputs non- .gz or .xz file there will be a build time error instead of runtime. - Run updater as user "nobody" instead of "root". - Rename NixOS service from "geoip-databases" to "geoip-updater". - Drop RemainAfterExit, or else the timer won't trigger the unit. - Bring back "curl --fail", or else we won't catch and log curl failures. Changes v4 -> v5: - Add "GeoLite2-City.mmdb.gz" to default database list. Changes v3 -> v4: - Remove unneeded geoip-updater-setup.service after adding 'wantedBy = [ "multi-user.target" ]' directly to geoip-updater.service - Drop unneeded "Service" name from service descriptions. Changes v2 -> v3: - Network may be down when starting from a cold boot, so try a few times. Possibly, if using systemd-networkd, it'll pass on the first try. But with default DHCP on NixOS, the service is started before hostnames can be resolved and thus we need a few extra seconds. - Add error handling and mark service as failed if fatal error. - Add proper syslog log levels. - Add RandomizedDelaySec=3600 to the timer to not put high load on the MaxMind servers. Suggested by @Mic92. - Set RemainAfterExit on geoip-updater.service instead of geoip-updater-setup.service. (The latter is only a proxy that pulls in the former service). Changes v1 -> v2: From Данило Глинський (Danylo Hlynskyi) <abcz2.uprola@gmail.com>: nixos/geoip-databases: add `databases` option and fix initial setup There were two great issues when using this service: - When you just enable service, databases aren't downloaded, they are downloaded when timer triggers. Fixed this with automatic download on first system activation. - When there is no internet, updater outputs nothing to logs, which is IMO misbehavior. Fixed this with removing `--fail` option, better be explicit here.
* nixos: fix taskserver module to evaluate properly when keys are managed manuallyPeter Simons2017-02-07
|
* gogs: fix error on pushTim Jaeger2017-02-04
| | | | | Pushing to gogs only works if the `gogs` user's shell is `bash`. For error and solution, refer to [this SO thread](http://stackoverflow.com/a/22315659)
* nixos: drop unused 'haskellPackages' option from ihaskell servicePeter Simons2017-01-31
| | | | Closes https://github.com/NixOS/nixpkgs/issues/19039.
* apache-kafka service: change default brokerId to -1Dan Peebles2017-01-24
| | | | | A default of 0 means that if you deploy two NixOS boxes with the default configuration, the second will fail because the brokerId was already in use. Using -1 instead tells it to pick one automatically at first start.
* Merge pull request #21416 from cstrahan/mesos-1.1.0Charles Strahan2017-01-21
|\ | | | | mesos: 1.0.1 -> 1.1.0
| * mesos: 1.0.1 -> 1.1.0Charles Strahan2016-12-29
| |
* | gogs service: initschneefux2017-01-21
| |
* | couchpotato module: initTristan Helmich2017-01-16
| |
* | sssd: init at 1.14.2Alexander Kahl2017-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | perlPackages.TextWrapI18N: init at 0.06 perlPackages.Po4a: init at 0.47 jade: init at 1.2.1 ding-libs: init at 0.6.0 Switch nscd to no-caching mode if SSSD is enabled. abbradar: disable jade parallel building. Closes #21150
* | Add some more details about useSandboxChris Martin2017-01-03
|/
* Merge pull request #21395 from jerith666/plex-firewallJörg Thalheim2016-12-24
|\ | | | | plex: add config option to open recommended network ports
| * plex: add config option to open recommended network portsMatt McHenry2016-12-24
| | | | | | | | as prescribed at https://support.plex.tv/hc/en-us/articles/201543147-What-network-ports-do-I-need-to-allow-through-my-firewall-
* | plex: fix a minor syntax issue in systemd ExecStartMatt McHenry2016-12-23
|/
* gitlab service: fix sidekiq queue configFranz Pletz2016-11-29
|
* matrix-synapse service: Make url_preview_enabled optional (#20609)Ruben Maher2016-11-28
|
* nixos/modules: use defaultText where applicableJoachim Fasting2016-11-21
| | | | | | Primarily to fix rendering of these default values in the manual but it's also nice to avoid having to eval these things just to build the manual.
* parsoid service: update, use declarative configurationNikolay Amiantov2016-11-20
| | | | | Old configuration format is disabled now (it can still be used, but with additional steps). This is a backwards incompatible change.
* Fix buildMachines example: use lists, not string (#20361)Michael Stapelberg2016-11-15
| | | | | | | Using the example before this commit resulted in the following error: ``` error: value is a string while a list was expected, at /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/services/misc/nix-daemon.nix:349:37 ```
* errbot service: fix `import config` in pluginsRobin Gloster2016-11-08
|
* leaps: 0.5.1 + add a service + testJoachim Schiele2016-11-06
|
* types: loeOf -> listOfEric Sagnes2016-11-05
|
* parsoid service: don't run as a superuserNikolay Amiantov2016-11-03
|
* parsoid service: fix for new parsoidNikolay Amiantov2016-11-03
|
* matrix-synapse: Allow keys to be generatedRuben Maher2016-11-02
| | | | | | | | | | The matrix-synapse user has `createHome = true;` which runs before the `preStart` script, so the home directory will always exist and the block will never execute. Also don't include default path to keys in the configuration file, because synapse will choke if it tries to open them before they exist (even with `--generate-keys`).