summary refs log tree commit diff
path: root/nixos/modules
Commit message (Collapse)AuthorAge
* nixos/prometheus: make scrapeConfigs.*.static_configs.*.labels optionalBjørn Forsman2016-12-25
| | | | | | | | | | | | | ...by providing a default value of "no labels" (an empty attrset). Without this change we get $ nixos-rebuild test -I nixpkgs=. building Nix... building the system configuration... error: The option `services.prometheus.scrapeConfigs.[definition 1-entry 1].static_configs.[definition 1-entry 1].labels' is used but not defined. which is unneeded, because labels _are_ optional.
* docker: use upstream service file from packageJörg Thalheim2016-12-25
|
* 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-
* | docker: update service units from upstreamJörg Thalheim2016-12-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All the new options in detail: Enable docker in multi-user.target make container created with restart=always to start. We still want socket activation as it decouples dependencies between the existing of /var/run/docker.sock and the docker daemon. This means that services can rely on the availability of this socket. Fixes #11478 #21303 wantedBy = ["multi-user.target"]; This allows us to remove the postStart hack, as docker reports on its own when it is ready. Type=notify The following will set unset some limits because overhead in kernel's ressource accounting was observed. Note that these limit only apply to containerd. Containers will have their own limit set. LimitNPROC=infinity LimitCORE=infinity TasksMax=infinity Upgrades may require schema migrations. This can delay the startup of dockerd. TimeoutStartSec=0 Allows docker to create its own cgroup subhierarchy to apply ressource limits on containers. Delegate=true When dockerd is killed, container should be not affected to allow `live restore` to work. KillMode=process
* | plex: fix a minor syntax issue in systemd ExecStartMatt McHenry2016-12-23
| |
* | nginx service: use `default_server` parameter instead of `default` (#21371)tv2016-12-23
| |
* | services.nginx: allow startup with ipv6 disabled (#21360)Felix Richter2016-12-23
| | | | | | | | | | currently services.nginx does not start up if `networking.enableIPv6 = false` the commit changes the nginx behavior to handle this case accordingly. The commit resolves #21308
* | apacheHttpdPackages.mod_perl: init at 2.0.10Rok Garbas2016-12-22
| |
* | Use overlayfs instead of unionfs-fuse in the VM testsEelco Dolstra2016-12-21
| | | | | | | | | | | | Overlayfs is quite a bit faster, e.g. with it the KDE 5 test takes ~7m instead of ~30m on my laptop (which is still not great, since plain 9pfs is ~4m30s).
* | nixos/prometheus: add services.prometheus.configText optionBjørn Forsman2016-12-21
| | | | | | | | | | | | The structured options are incomplete compared to upstream and I think it will be a maintenance burden to try to keep up. Instead, provide an option for the raw config file contents (prometheus.yml).
* | Enable virtualisation.writableStore by defaultEelco Dolstra2016-12-20
| | | | | | | | | | | | | | | | | | | | | | | | | | This works around: machine: must succeed: nix-store -qR /run/current-system | grep nixos- machine# error: changing ownership of path ‘/nix/store’: Invalid argument Probably Nix shouldn't be anal about the ownership of the store unless it's trying to build/write to the store. http://hydra.nixos.org/build/45093872/nixlog/17/raw (cherry picked from commit 57a0f140643cde409022e297ed05e05f8d34d778)
* | Use only one build of qemu in VM testsEelco Dolstra2016-12-20
| | | | | | | | | | | | | | Previously we were using two or three (qemu_kvm, qemu_test, and qemu_test with a different dbus when minimal.nix is included). (cherry picked from commit 8bfa4ce82ea7d23a1d4c6073bcc044e6bf9c4dbe)
* | virtualisation.qemu.program: RemoveEelco Dolstra2016-12-20
| | | | | | | | | | | | | | | | This option is defined in qemu-vm.nix, but that module is not always imported. http://hydra.nixos.org/build/44817443 (cherry picked from commit 03c55005dfd6fbcd5cf8e00128a3bb6336b3bc0f)
* | systemd: add slice supportMarkov Dmitry2016-12-20
| |
* | nixos-rebuild: Fix SSHOPTS typoMaximilian Güntner2016-12-18
| | | | | | | | Signed-off-by: Maximilian Güntner <code@klandest.in>
* | rmilter service: fix invalid directiveJoachim Fasting2016-12-18
| | | | | | | | | | | | RuntimeDirectoryPermissions -> RuntimeDirectoryMode Would result in warnings like "unknown lvalue" on startup
* | brltty service: wait for devices to settleJoachim Fasting2016-12-18
| | | | | | | | | | | | | | Otherwise it starts way too early, only to fail and having to restart until devices are available. It is less wasteful to simply wait until there's a reasonable chance of success. This is consistent with upstream.
* | Revert "mysql service: specify a default package"Joachim Fasting2016-12-17
| | | | | | | | | | | | | | | | | | This reverts commit 4358d3d43938666834d3e1fd5a8ea69b49c08112. Not having a default was deliberate, see https://github.com/NixOS/nixpkgs/commit/1ce6fff4e21906a3e6cfd26fdf4372f7501541cd Thanks to @ocharles for making me aware of this.
* | Revert "mysql service: specify defaultText for package option"Joachim Fasting2016-12-17
| | | | | | | | This reverts commit 52d12b473af0dfbf7f5af1bd75ac5a5f2366f887.
* | /etc/hosts and /etc/nsswitch.conf cleanupsPeter Hoeg2016-12-17
| | | | | | | | fixes #18183
* | networkd: add extraConfig to all unitsJörg Thalheim2016-12-17
| | | | | | | | | | | | networkd options are always correct or up to date. This option allows to by pass type checking. It is also easier to write because examples can be just copy and paste from manpages.
* | networkd: allow to supply own unit filesJörg Thalheim2016-12-17
| | | | | | | | | | | | | | | | | | | | Networkd units can contain secrets. In future also wireguard vpn will be supported by networkd. To avoid leakage of private keys, those could be then also put outside of the /nix/store Having a writeable /etc/systemd/network also allows to quick fix network issues, when upgrading `nixos-rebuild switch` would require network on its own (due updates).
* | Revert "fix 2 xml errors in the description of ↵Bjørn Forsman2016-12-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | boot.loader.grub.efiInstallAsRemovable" This reverts commit 656cc3acafcb30e3503f4d3e39694ca996c66015 because it causes building the manual to fail: $ nixos-rebuild build ... building path(s) ‘/nix/store/s9y5z78z5pssvmixcmv9ix13gs8xj87f-manual-olinkdb’ Writing /nix/store/s9y5z78z5pssvmixcmv9ix13gs8xj87f-manual-olinkdb/manual.db for book(book-nixos-manual) ./man-pages.xml:625: element para: Relax-NG validity error : Did not expect element para there ./man-pages.xml:3: element variablelist: Relax-NG validity error : Element refsection has extra content: variablelist ./man-pages.xml:29: element refsection: Relax-NG validity error : Element refentry has extra content: refsection ./man-pages.xml:3: element reference: Relax-NG validity error : Element reference failed to validate content ./man-pages.xml fails to validate CC @cleverca22, @Mic92
* | ntp: make timesyncd the new defaultJörg Thalheim2016-12-17
| | | | | | | | | | | | | | | | - most nixos user only require time synchronisation, while ntpd implements a battery-included ntp server (1,215 LOCs of C-Code vs 64,302) - timesyncd support ntp server per interface (if configured through dhcp for instance) - timesyncd is already included in the systemd package, switching to it would save a little disk space (1,5M)
* | uxrvtd: Fix clipboardrnhmjoj2016-12-16
| |
* | collectd service: change /var/lib/collectd perms: 700 -> 755Bjørn Forsman2016-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | The collectd service runs as an unprivileged user by default, so it does not leak more information to its data directory than any user can obtain elsewhere by other means. If people are running it as root and are worried about information leak, we can add collectd group and set perms to 750. CC @offlinehacker. Fixes #21198.
* | nixos/keystone: secrets can be read from filesAntoine Eiche2016-12-16
| | | | | | | | | | | | | | A secret can be stored in a file. It is written at runtime in the configuration file. Note it is also possible to write them in the nix store for dev purposes.
* | nixos/keystone: init at liberty versionAntoine Eiche2016-12-16
| | | | | | | | | | | | | | | | | | | | | | This commit introduces a nixos module for the Openstack Keystone service. It also provides a optional bootstrap step that creates some basic initial resources (tenants, endpoints,...). The provided test starts Keystone by enabling bootstrapping and checks if user creation works well. This commit is based on initial works made by domenkozar.
* | fix 2 xml errors in the description of boot.loader.grub.efiInstallAsRemovablemichael bishop2016-12-16
| |
* | fix indentation in several nixos option descriptionsmichael bishop2016-12-16
| |
* | lxqt: better organize system packagesromildo2016-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split packages in three categories, all of them going into the system package list: - pre-requisite packages - core packages - optional packages Add a new configuration option 'environment.lxqt.excludePackages' to specify optional LXQt packages that should be excluded from system packages. Add 'gvfs' as a pre-requisite package, needed by 'pcmanfm-qt' to handle virtual places, like "Computer" and "Network".
* | nixos/test-instrumentation: Fix eval of boot testsaszlig2016-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The boot tests import test-instrumentation.nix directly to create a VM image that only contains things such as the backdoor and serial console the same way as used by other NixOS VM tests. With one difference though: It doesn't need nor want to have 9p filesystems mounted, because we actually want to test an image rather than re-using most stuff from the host's store. Change tested against the boot.uefiUsb and ipv6 tests, just that it becomes clear we don't break either the tests with 9p nor the boot tests (which were already broken but now succeed). Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | nssModules: include correct systemd outputJörg Thalheim2016-12-15
| | | | | | | | fixes libnss_myhost, libnss_mymachines, libnss_resolve are located here
* | Merge pull request #20500 from aszlig/qemu-patched-for-nixos-testsEelco Dolstra2016-12-15
|\ \ | | | | | | nixos/tests: Use a patched QEMU for testing
| * | nixos/tests: Use a patched QEMU for testingaszlig2016-11-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason to patch QEMU is that with latest Nix, tests like "printing" or "misc" fail because they expect the store paths to be owned by uid 0 and gid 0. Starting with NixOS/nix@5e51ffb1c265e16486fcdd888ce4a04db9e5552b, Nix builds inside of a new user namespace. Unfortunately this also means that bind-mounted store paths that are part of the derivation's inputs are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534. This in turn causes things like sudo or cups to fail with errors about insecure file permissions. So in order to avoid that, let's make sure the VM always gets files owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store path. In addition, this adds a virtualisation.qemu.program option so that we can make sure that we only use the patched version if we're *really* running NixOS VM tests (that is, whenever we have imported test-instrumentation.nix). Tested against the "misc" and "printing" tests. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | | bird: refactor moduleJörg Thalheim2016-12-15
| | | | | | | | | | | | | | | | | | - syntax check before deploying configuration - remove static unnessary static uid/gid (configuration is opened as root) - add service hardening
* | | Merge pull request #21087 from offlinehacker/nixos/kubernetes1/fixdnsJörg Thalheim2016-12-15
|\ \ \ | | | | | | | | kubernetes module: fix default dns ip
| * | | kubernetes module: fix default dns ipJaka Hudoklin2016-12-12
| | | |
* | | | ferm: reload rules on updates instead of restartJörg Thalheim2016-12-14
| | | |
* | | | fail2ban service : improve ssh jail (#21131)Renaud2016-12-14
| | | | | | | | | | | | | | | | Improvement to the ssh-iptables to block the port(s) actually defined for sshd in config.services.openssh.ports
* | | | Merge pull request #21137 from jerith666/cupsd-pathNikolay Amiantov2016-12-14
|\ \ \ \ | | | | | | | | | | use symlink to ensure cupsd.conf PATH always points to a valid store path
| * | | | use symlink to ensure cupsd.conf PATH always points to a valid store pathMatt McHenry2016-12-13
| | |_|/ | |/| | | | | | | | | | | | | | | | | | even if cups rewrites its config file due to config changes made through its web-based management UI, we need to keep the PATH pointing to currently-live nix store directories. fixes #20806.
* | | | terraria service: fixup worldPath option typeJoachim Fasting2016-12-13
| | | | | | | | | | | | | | | | Otherwise, using the defaults results in a type error.
* | | | terraria service: fix tmux outputJoachim Fasting2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | | tmux.bin was removed in 5535d9439415454abe00589bd7575b61e7fbb8db Use `lib.getBin` to be more robust to future changes.
* | | | buildbot: 0.9.0rc4 -> 0.9.0.post1Fernando J Pando2016-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - updates buildbot to version 9 release - adds nixos configuration module - fixes buildbot-www package deps - re-hardcode path to tail - builbot configuration via module vars fixes #19759
* | | | containers: fix broken /etc/hosts entries when localAddress contains a netmaskmontag4512016-12-12
| | | |
* | | | Add macvlan support for declarative containersmontag4512016-12-12
| | | |
* | | | postsrsd: additional configurationGregor Kleen2016-12-11
| |/ / |/| | | | | | | | fixes #19933
* | | Merge pull request #20971 from kierdavis/boincJoachim F2016-12-11
|\ \ \ | | | | | | | | boinc service: add to module list