1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/nixos/modules
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
..
config Merging with upstream 2017-01-29 05:54:01 -06:00
hardware linuxPackages.nvidia_x11: refactor, build more from source 2017-02-08 16:57:46 +03:00
i18n/input-method nixos/ibus: fix custom panel example 2017-01-24 12:52:39 -06:00
installer Merge pull request #22758 from dezgeg/pr-nixos-rebuild 2017-02-14 16:35:43 +01:00
misc nixos/geoip-updater: run as user 'geoip' instead of 'nobody' 2017-02-15 23:25:27 +01:00
profiles nixos: update default cases from KDM/KDE4 to SDDM/KDE5 2017-02-09 21:52:00 -05:00
programs Set merge + mkIf always surprises me 2017-01-29 17:10:32 -06:00
security pam: add optional pam_kwallet5 integration 2017-02-16 02:26:42 -05:00
services taskserver: Pass configuration via command line 2017-02-17 19:45:58 +01:00
system networking.networkd: adjust autmatic mapping of bonds 2017-02-16 21:24:40 +01:00
tasks networking.networkd: adjust autmatic mapping of bonds 2017-02-16 21:24:40 +01:00
testing kdm: drop service 2017-02-11 13:55:09 -05:00
virtualisation amazon-init NixOS module: fix (I think) race condition with network 2017-02-16 16:03:58 +00:00
module-list.nix Addressing feedback and fixing a bug 2017-02-14 07:38:45 -06:00
rename.nix nixos: hint about security.setuidOwners/Programs -> security.wrappers 2017-02-15 07:25:33 +01:00