Commit graph

7205 commits

Author SHA1 Message Date
Franz Pletz
e4e7f61d8d
nixos/networking: network is online if default gw set
Previously services depending on network-online.target would wait until
dhcpcd times out if it was enabled and a static network address
configuration was used. Setting the default gateway statically is enough
for the networking to be considered online.

This also adjusts the relevant networking tests to wait for
network-online.target instead of just network.target.

(cherry picked from commit b179908414)
2017-09-19 22:30:31 +02:00
Eric Litak
0f2484c34f
ipfs: autoMount working without root
(cherry picked from commit 1a15c5d8c6)
2017-09-19 22:30:30 +02:00
Eric Litak
a8d411e3cb
ipfs: workaround for upstream bug; doc fixes
(cherry picked from commit 6324317c76)
2017-09-19 22:30:30 +02:00
Florian Jacob
ddbec38741
nixos/mysql: declarative users & databases
using Unix socket authentication, ensured on every rebuild.

(cherry picked from commit 839e3c7666)
2017-09-19 22:30:30 +02:00
Kranium Gikos
66eccc7c23
influxdb service: fixup postStart script to handle TLS
(cherry picked from commit 662b409b72)
2017-09-19 22:30:29 +02:00
Justin Humm
e2197ade16
gollum service: init
(cherry picked from commit b5a5d0ba84)
2017-09-19 22:30:29 +02:00
Pascal Bach
f6d4769b34
squid service: intial service based on default config
(cherry picked from commit 2ed89eddf3)
2017-09-19 22:30:28 +02:00
Rodney Lorrimar
f3c517d5e0
nixos/gogs: Fix module when no passwords provided
If neither database.password or database.passwordFile were provided,
it would try and fail to coerce null to a string.

This fixes the situation where there is no password for the database.

Resolves #27950

(cherry picked from commit 6460e459de)
2017-09-19 22:30:27 +02:00
Franz Pletz
5fa2fe91c0
Merge branch 'staging-17.09' into release-17.09 2017-09-19 01:36:17 +02:00
gwitmond
670b4e29ad nixos: add option for bind to not resolve local queries (#29503)
When the user specifies the networking.nameservers setting in the
configuration file, it must take precedence over automatically
derived settings.

The culprit was services.bind that made the resolver set to
127.0.0.1 and ignore the nameserver setting.

This patch adds a flag to services.bind to override the nameserver
to localhost. It defaults to true. Setting this to false prevents the
service.bind and dnsmasq.resolveLocalQueries settings from
overriding the users' settings.

Also, when the user specifies a domain to search, it must be set in
the resolver configuration, even if the user does not specify any
nameservers.
2017-09-18 13:21:44 +02:00
Ryan Mulligan
b81ef1e31d
matterbridge, modules/matterbridge: init at 1.1.0
(cherry picked from commit 9c786d82f2)
2017-09-17 18:25:27 +02:00
Matt McHenry
73f34f1c7a
systemd: better document enabled, wantedBy, and requiredBy (#29453)
the systemd.unit(5) discussion of wantedBy and requiredBy is in the
[Install] section, and thus focused on stateful 'systemctl enable'.
so, clarify that in NixOS, wantedBy & requiredBy are still what most
users want, and not to be confused with enabled.

(cherry picked from commit cfbac1beb4)
2017-09-17 18:24:07 +02:00
Tuomas Tynkkynen
545d8e7cb4
sd-image-aarch64: Increase CMA memory so RPi3 virtual console works again
(cherry picked from commit c8e7aab0c8)
2017-09-17 18:19:46 +02:00
joachim schiele
4ddf1959d0
dovecot2: added quota, changed pop3 default
(cherry picked from commit 7904499542)
2017-09-17 18:19:45 +02:00
Jörg Thalheim
f6d4327d55
zfsUnstable: init at 2017-09-12
(cherry picked from commit 1ecf3e862f)
2017-09-17 18:19:45 +02:00
Linus Heckemann
787bf9292f
nixos-install: use FIFO for system closure
This avoids running out of space in space-constrained environments,
e.g. VMs with relatively small amounts of memory and tmp on tmpfs

(cherry picked from commit 77ce02201e)
2017-09-17 18:19:44 +02:00
Linus Heckemann
d0edf75d99
nixos-install: only search for nixpkgs when needed
(cherry picked from commit 8b1f1d93fa)
2017-09-17 18:19:44 +02:00
Eelco Dolstra
887d60d5aa
nix: 1.11.14 -> 1.11.15
(cherry picked from commit 6dad1f70ce)
2017-09-17 18:19:44 +02:00
Robin Gloster
55f626fbb6
nixos/redmine: fix create role
postgresql create role no longer supports NOCREATEUSER option. See
https://www.postgresql.org/docs/9.6/static/release-9-6.html for
details.

(cherry picked from commit f5e0e94b2a)
2017-09-17 18:19:37 +02:00
Ryan Mulligan
cc7c4bb36f
nixos/mattermost: fix create role
postgresql create role no longer supports NOCREATEUSER option. See
https://www.postgresql.org/docs/9.6/static/release-9-6.html for
details.

(cherry picked from commit 8585898909)
2017-09-17 18:19:36 +02:00
geistesk
935dbdc30a
nixos/fireqos: add service
(cherry picked from commit 2316f16ac0)
2017-09-17 18:19:35 +02:00
Edward Tjörnhammar
fe0ea07417
nixos, i2pd: nat option, default true
(cherry picked from commit 847ce53ab1)
2017-09-17 18:19:28 +02:00
timor
5218059660
physlock: 0.5 -> 11-dev
Update physlock to a more current version which supports PAM and
systemd-logind.  Amongst others, this should work now with the slim
login manager without any additional configuration, because it does
not rely on the utmp mechanism anymore.

(cherry picked from commit ae87a30a83)
2017-09-17 18:19:27 +02:00
Pascal Bach
8e2391d169
nixos/prometheus-collectd-exporter: init module (#29212)
* prometheus-collectd-exporter service: init module

Supports JSON and binary (optional) protocol
of collectd.

* nixos/prometheus-collectd-exporter: submodule is not needed for collectdBinary

(cherry picked from commit 334e23d244)
2017-09-17 18:19:26 +02:00
lewo
a6bf07155a
nixos/nova-image: cleanup image builders (#29242)
There are currently two ways to build Openstack image. This just picks
best of both, to keep only one!

- Image is resizable
- Cloudinit is enable
- Password authentication is disable by default
- Use the same layer than other image builders (ec2, gce...)

(cherry picked from commit 3a377e26b2)
2017-09-17 18:19:25 +02:00
Florian Jacob
c69ee73db1
nixos/tinc: Fix tinc cli wrapper for tinc 1.0.
tinc prior to 1.1 doesn't have the `tinc` executable,
and `tincd` isn't of any use while the daemon already runs.

(cherry picked from commit 8cea87c1eb)
2017-09-17 17:43:33 +02:00
Silvan Mosberger
2fd44d9847
namecoin service: fix typo
(cherry picked from commit fea9e081a9)
2017-09-17 17:43:33 +02:00
Bjørn Forsman
8f37a144e1 nixos/wpa_supplicant: use literalExample
For various reasons, big Nix attrsets look ugly in the generated manual
page[1]. Use literalExample to fix it.

[1] Quotes around attribute names are lost, newlines inside multi-line
strings are shown as '\n' and attrs written on multiple lines are joined
into one.

(cherry picked from commit 6b7a9376f1)
2017-09-15 20:31:53 +02:00
Rob Vermaas
38883f8ddc
google-instance-setup: add openssh to path
(cherry picked from commit 0783efb41c)
2017-09-15 10:49:01 +00:00
Jörg Thalheim
892015000a tor: skip ControlPort in torrc, if not set. 2017-09-13 23:34:04 +01:00
Tuomas Tynkkynen
7d7e9673fc treewide: Escape backslash in strings properly
"\." is apparently the same as "." wheras the correct one is "\\."

(cherry picked from commit 0c368ef02f)
2017-09-14 01:06:31 +03:00
Vladimír Čunát
0b131dfaeb
hpsa service: fallout from #28557 merge and revert
(cherry picked from commit 97ac29cafc)
2017-09-13 07:58:29 +02:00
Jörg Thalheim
30d6f55f47 nixos/openafs-client: update cellServDB 2009-06-29 -> 2017-03-14
(cherry picked from commit 39e327eeb5)
2017-09-12 13:14:01 +01:00
Bjørn Forsman
b98fda5cad nixos/gitolite: don't leak nix store hash into gitolite-admin username/key
It doesn't look good when the initial admin user is named
"<hash>-gitolite-admin" and the key stored as
"<hash>-gitolite-admin.pub". Instead, make it simply "gitolite-admin"
and "gitolite-admin.pub".

(cherry picked from commit 6b9ee30672)
2017-09-12 10:59:30 +02:00
pvgoran
898924ed5e services.gitolite: Add RequiresMountsFor unit option ...
... to ensure that the filesystem where `dataDir` resides is mounted when we do initialization or upgrade.

(cherry picked from commit 4c4f73c0eb)
2017-09-12 07:04:05 +00:00
Bjørn Forsman
726c294cae nixos/samba: remove space in "[ global ]" heading
Use consistent no-space style. (All documentation I've seen use no
space, and the generated section headings from the NixOS module also use
no space.)

(cherry picked from commit fc02a0265a)
2017-09-12 08:04:02 +02:00
Vaibhav Sagar
cd19919d1e
znc: add openFirewall configuration option
(cherry picked from commit c7dd5e146b)
2017-09-10 18:00:34 +02:00
Vaibhav Sagar
d2b00a6a85
znc: open firewall with configured port
The configuration doesn't currently open the configured port, which is
less convenient than opening it.

(cherry picked from commit 83d89e9b22)
2017-09-10 18:00:34 +02:00
Vaibhav Sagar
a3d4721d3f
znc: fix network example configuration
s/ssl/useSSL/

(cherry picked from commit 405050b2cb)
2017-09-10 17:55:51 +02:00
Ruben Maher
05f1c244dd
nixos/transmission: make it possible to use a different home directory (#29138)
(cherry picked from commit 4ff9e9e333)
2017-09-10 17:55:50 +02:00
Joachim Fasting
fc7d2aaec9
nixos/hardened: blacklist a few obscure net protocols
(cherry picked from commit 8aa0618cf0)
2017-09-10 17:55:50 +02:00
Joachim Fasting
e7e99f3642
nixos/hardened: set mmap_min_addr
This is set in the hardened linux config as well but sysctl is more
flexible & works with any boot.kernelPackages

(cherry picked from commit 2bce0b13e7)
2017-09-10 17:55:50 +02:00
Niklas Hambüchen
6830087d7b glusterfs service: Ensure dirs needed by glusterfind exist
(cherry picked from commit 5bc38fc089)
2017-09-10 16:53:06 +02:00
Tim Steinbach
e8e8c9b9c1
docker: Allow package selection in module
(cherry picked from commit 2bb57ef776)
2017-09-08 16:08:53 +02:00
Vladimír Čunát
399b6100c2
nixos/mfi: fix eval after removal 7ffc6db733 2017-09-08 08:41:06 +02:00
Bjørn Forsman
4b28be5f10
nixos/postfix: undo deprecation of extraConfig, extraMasterConf
I realize that advanced users like to configure services with Nix
attrsets, but I don't think we should remove the option to use the
(configuration) language provided by upstream.

(cherry picked from commit eed14baec3)
2017-09-07 21:46:13 +02:00
Jörg Thalheim
7ffc6db733 nixos/mfi: remove
(cherry picked from commit 6f0b538044)
2017-09-07 20:34:45 +01:00
pbogdan
7b174993b9
nixos/fontconfig: fix substitutions option (#28895)
(cherry picked from commit 94a4183bda)
2017-09-06 19:23:45 +02:00
makefu
e642c7607c
dnscrypt-wrapper module: fix permissions and options
When keys get refreshed a folder with the permissions of the root user
get created in the home directory of the user dnscrypt-wrapper. This
prevents the service from restarting.

In addition to that the parameters of dnscrypt-wrapper have
changed in upstream and in the newly packaged software.

(cherry picked from commit ca54a86162)
2017-09-06 19:23:43 +02:00
Franz Pletz
a5a6cd017a
postgresql92: remove last references
(cherry picked from commit 279db6966ef89bd8096634fdb5a5ec77dd06a228)
2017-09-05 18:20:05 +02:00