1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/nixos/modules/services/misc
aszlig c7bbb93878
taskserver: Pass configuration via command line
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
2017-02-17 19:45:58 +01:00
..
taskserver taskserver: Pass configuration via command line 2017-02-17 19:45:58 +01:00
apache-kafka.nix apache-kafka service: change default brokerId to -1 2017-01-24 12:32:22 -05:00
autofs.nix nixos/autofs: fix typo afuese -> afuse 2016-09-19 13:49:47 +02:00
bepasty.nix nixos: use types.lines for extraConfig 2016-10-23 19:41:43 +02:00
calibre-server.nix calibre-server service: add type to libraryDir option 2015-10-31 14:21:56 -07:00
canto-daemon.nix
cfdyndns.nix cfdyndns: init at 0.0.1 2016-02-15 12:54:04 -08:00
cgminer.nix cgminer: respect xserver.display variable 2016-07-05 19:17:40 -07:00
confd.nix confd service: change default etcd port 4001 -> 2379 2016-09-28 23:35:54 +02:00
couchpotato.nix couchpotato module: init 2017-01-16 12:54:43 +01:00
cpuminer-cryptonight.nix
defaultUnicornConfig.rb fixup! gitlab: 8.0.5 -> 8.5.0, service improvements 2016-02-26 08:31:20 +01:00
devmon.nix devmon: Non-root user, set PATH, require udisks2 2015-11-18 11:30:08 +00:00
dictd.nix nixos/modules: use defaultText where applicable 2016-11-21 16:35:15 +01:00
disnix.nix nixos/modules: use defaultText where applicable 2016-11-21 16:35:15 +01:00
docker-registry.nix dockerRegistry module: re-init with new underlying software 2016-10-12 14:05:09 +02:00
dysnomia.nix disnix-module: split dysnomia's functionality into a separate module so that it can be used without Disnix and remove the hacky/obsolete avahi publisher 2016-06-17 09:12:44 +00:00
emby.nix emby: use makeWrapper to supply ffmpeg/probe paths 2016-10-03 12:23:44 +02:00
errbot.nix errbot service: fix import config in plugins 2016-11-08 17:44:52 +01:00
etcd.nix misc.etcd: get closer to upstream service definition 2016-09-13 11:19:22 +02:00
felix.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
folding-at-home.nix folding-at-home service: network-interfaces.target -> network.target 2016-09-13 11:19:22 +02:00
gammu-smsd.nix treewide: Mass replace 'sqlite}/bin' to refer to the correct outputs 2016-04-14 08:32:20 +03:00
geoip-updater.nix nixos/geoip-updater: run as user 'geoip' instead of 'nobody' 2017-02-15 23:25:27 +01:00
gitit.nix Fix #4210: Remove builderDefs 2016-08-31 11:34:46 +02:00
gitlab.nix gitlab service: fix database creation 2017-02-13 00:57:22 +01:00
gitlab.xml nixos/doc/gitlab: fix build 2016-08-26 15:47:39 +02:00
gitolite.nix
gogs.nix gogs: fix error on push 2017-02-04 12:16:37 +01:00
gpsd.nix
ihaskell.nix nixos: drop unused 'haskellPackages' option from ihaskell service 2017-01-31 22:38:01 +01:00
leaps.nix leaps: 0.5.1 + add a service + test 2016-11-06 10:34:42 +01:00
mantisbt.nix mantisbt: fix typo in documentation 2016-03-12 07:48:36 -06:00
mathics.nix nixos/mathics: New service and test 2016-01-02 14:34:55 -08:00
matrix-synapse-log_config.yaml matrix-synapse: init at 0.12.0 2016-01-15 15:17:14 +01:00
matrix-synapse.nix matrix-synapse service: Make url_preview_enabled optional (#20609) 2016-11-28 03:33:48 +01:00
mbpfan.nix Add missing 'type', 'defaultText' and 'literalExample' in module definitions 2016-01-17 19:41:23 +01:00
mediatomb.nix
mesos-master.nix mesos: 1.0.1 -> 1.1.0 2016-12-29 20:09:46 -05:00
mesos-slave.nix mesos: 1.0.1 -> 1.1.0 2016-12-29 20:09:46 -05:00
mwlib.nix
nix-daemon.nix Revert "nix-daemon: default useSandbox to true" 2017-02-14 14:13:39 -05:00
nix-gc.nix nix gc service: fix use of startAt 2016-10-23 17:56:49 +02:00
nix-optimise.nix nix-optimise module: fix startAt 2016-10-19 02:22:12 +02:00
nix-ssh-serve.nix treewide: Use correct output in ${config.nix.package}/bin 2016-04-25 16:44:37 +02:00
nixos-manual.nix manual: automatically generate modules entries 2016-08-11 00:24:41 +09:00
nscd-sssd.conf sssd: init at 1.14.2 2017-01-04 03:07:20 +03:00
nzbget.nix nzbget: 16.4 -> 17.0-r1686 and nzbget service 2016-05-13 18:56:39 +02:00
octoprint.nix nixos/octoprint: fixup extraConfig 2016-10-23 19:47:28 +02:00
packagekit.nix packagekit: add latest from hughsie's github repo 2016-07-05 20:26:59 +00:00
parsoid.nix parsoid service: update, use declarative configuration 2016-11-20 19:12:14 +03:00
phd.nix
plex.nix Merge pull request #21395 from jerith666/plex-firewall 2016-12-24 23:31:04 +01:00
redmine.nix nixos: use types.lines for extraConfig 2016-10-23 19:41:43 +02:00
ripple-data-api.nix
ripple-rest.nix
rippled.nix rippled module: optionSet -> submodule 2016-09-13 12:53:10 +09:00
rogue.nix
siproxd.nix
sonarr.nix sonarr service: initial service 2016-07-15 16:18:37 +02:00
spice-vdagentd.nix spice-vdagentd service : initial at 0.16.0 2016-03-05 07:56:47 +10:00
ssm-agent.nix ssm-agent NixOS module: init 2017-02-13 04:01:38 +00:00
sssd.nix sssd: init at 1.14.2 2017-01-04 03:07:20 +03:00
subsonic.nix Add script to move /var/subsonic to cfg.home 2016-05-16 14:42:22 -07:00
sundtek.nix sundtek: 2015-12-12 -> 2016-01-26 + service change 2016-01-30 20:08:52 +01:00
svnserve.nix svnserve service: network-interfaces.target -> network.target 2016-09-13 11:19:22 +02:00
synergy.nix
uhub.nix
zookeeper.nix zookeeper service: network-interfaces.target -> network.target 2016-09-13 11:19:22 +02:00