summary refs log tree commit diff
path: root/nixos
Commit message (Collapse)AuthorAge
...
* | | | | | | Merge pull request #11228 from ocharles/x-ctrl-alt-backspaceEelco Dolstra2015-12-17
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | services.xserver: Disable Ctrl+Alt+Backspace by default
| * | | | | | services.xserver: Disable Ctrl+Alt+Backspace by defaultOllie Charles2015-11-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ctrl+Alt+Backspace is usually enabled by default under X, and is a keyboard shortcut that forcefully kills the current X server. This can lead to data loss by users if accidentally pressed. This commit introduces a new option, services.xserver.enableCtrlAltBackspace, that is *disabled* by default. If set to true, the previous behavior can be restored. A similar decision was made by the Ubuntu team, and is documented here: https://wiki.ubuntu.com/XorgCtrlAltBackspace
* | | | | | | nixos/xserver: fix typosThomas Tuegel2015-12-16
| | | | | | |
* | | | | | | kde5_latest: merge all package setsThomas Tuegel2015-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The three KDE package sets now have circular dependencies between them, so they can only be built if they are merged into a single package set during evaluation.
* | | | | | | Merge pull request #11338 from obadz/light-lockerOliver Charles2015-12-16
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | light-locker (lockscreen for lightdm)
| * | | | | | lightdm & xserver service: add ability to spawn more than one X serverobadz2015-12-15
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - if xserver.tty and/or display are set to null, then don't specify them, or the -logfile argument in the xserverArgs - For lightdm, we set default tty and display to null and we determine those at runtime based on arguments passed. This is necessary because we run multiple X servers so they can't all be on the same display
* | | | | | nixos/tests: Revert setting min_free_kbytesaszlig2015-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 02b568414d509b5d06dbd95bcc0868d487ed359e. With a5bc11f and 6353f58 in place, we really don't need this anymore. After running about 500 VM tests on my Hydra, it still didn't improve very much. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | | | | | nixos/qemu-vm: Disable cache for $NIX_DISK_IMAGEaszlig2015-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As @domenkozar noted in #10828, cache=writeback seems to do more harm than good: https://github.com/NixOS/nixpkgs/issues/10828#issuecomment-164426821 He has tested it using the openstack NixOS tests and found that cache=none significantly improves startup performance. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | | | | | nixos/vm-tests: Remove msize mount optionaszlig2015-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This seems to be the root cause of the random page allocation failures and @wizeman did a very good job on not only finding the root problem but also giving a detailed explanation of it in #10828. Here is an excerpt: The problem here is that the kernel is trying to allocate a contiguous section of 2^7=128 pages, which is 512 KB. This is way too much: kernel pages tend to get fragmented over time and kernel developers often go to great lengths to try allocating at most only 1 contiguous page at a time whenever they can. From the error message, it looks like the culprit is unionfs, but this is misleading: unionfs is the name of the userspace process that was running when the system ran out of memory, but it wasn't unionfs who was allocating the memory: it was the kernel; specifically it was the v9fs_dir_readdir_dotl() function, which is the code for handling the readdir() function in the 9p filesystem (the filesystem that is used to share a directory structure between a qemu host and its VM). If you look at the code, here's what it's doing at the moment it tries to allocate memory: buflen = fid->clnt->msize - P9_IOHDRSZ; rdir = v9fs_alloc_rdir_buf(file, buflen); If you look into v9fs_alloc_rdir_buf(), you will see that it will try to allocate a contiguous buffer of memory (using kzalloc(), which is a wrapper around kmalloc()) of size buflen + 8 bytes or so. So in reality, this code actually allocates a buffer of size proportional to fid->clnt->msize. What is this msize? If you follow the definition of the structures, you will see that it's the negotiated buffer transfer size between 9p client and 9p server. On the client side, it can be controlled with the msize mount option. What this all means is that, the reason for running out of memory is that the code (which we can't easily change) tries to allocate a contiguous buffer of size more or less equal to "negotiated 9p protocol buffer size", which seems to be way too big (in our NixOS tests, at least). After that initial finding, @lethalman tested the gnome3 gdm test without setting the msize parameter at all and it seems to have resolved the problem. The reason why I'm committing this without testing against all of the NixOS VM test is basically that I think we can only go better but not worse than the current state. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | | | | | Merge pull request #11575 from rvlander/fix_container_manualAristid Breitkreuz2015-12-13
|\ \ \ \ \ \ | | | | | | | | | | | | | | nixos-manual: fix incomplete container doc
| * | | | | | nixos-manual: fix grammarGaëtan André2015-12-10
| | | | | | |
| * | | | | | nixos-manual: develop autoStart option for containersGaëtan André2015-12-09
| | | | | | |
| * | | | | | nixos-manual: fix incomplete container docGaëtan André2015-12-09
| | |_|/ / / | |/| | | |
* | | | | | Merge pull request #11681 from jgillich/upnpd-fwArseniy Seroka2015-12-13
|\ \ \ \ \ \ | | | | | | | | | | | | | | miniupnpd: firewall config
| * | | | | | miniupnpd: firewall configJakob Gillich2015-12-13
| | | | | | |
* | | | | | | virtualisation.qemu.options: specify typeDomen Kožar2015-12-13
| | | | | | |
* | | | | | | clamav: improvementsJC Brand2015-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add new service for `clamd`, the ClamAV daemon. - Replace the old upstart "jobs" section with systemd.services - Remove unnecessary config options. - Use `mkEnableOption`
* | | | | | | clamav: Fixed indentation.JC Brand2015-12-13
|/ / / / / /
* | | | | | nixos/acme: fix timer unitNikolay Amiantov2015-12-13
| | | | | |
* | | | | | Merge branch 'feature/simp_le-service' of ↵Nikolay Amiantov2015-12-13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | https://github.com/mayflower/nixpkgs into mayflower-feature/simp_le-service
| * | | | | | nixos/acme: Add module documentationFranz Pletz2015-12-12
| | | | | | |
| * | | | | | nixos/acme: validMin & renewInterval aren't cert-specificFranz Pletz2015-12-12
| | | | | | |
| * | | | | | nixos/acme: Improve documentationFranz Pletz2015-12-12
| | | | | | |
| * | | | | | nixos/simp_le: Rename to security.acmeFranz Pletz2015-12-12
| | | | | | |
| * | | | | | nixos/simp_le: Use systemd for setting user and groupFranz Pletz2015-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is much cleaner and we don't depend on sudo.
| * | | | | | nixos/simp_le: use /var/lib/simp_le as root dir by defaultNikolay Amiantov2015-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /etc on NixOS is regenerated on boot and there was movement towards making it read-only -- so let's keep dynamic state elsewhere.
| * | | | | | nixos/simp_le: improve configuration optionsNikolay Amiantov2015-12-12
| | | | | | |
| * | | | | | simp_le service: letsencrypt cert auto-renewalFranz Pletz2015-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new service invokes `simp_le` for a defined set of certs on a regular basis with a systemd timer. `simp_le` is smart enough to handle account registration, domain validation and renewal on its own. The only thing required is an existing HTTP server that serves the path `/.well-known/acme-challenge` from the webroot cert parameter. Example: services.simp_le.certs."foo.example.com" = { webroot = "/var/www/challenges"; extraDomains = [ "www.example.com" ]; email = "foo@example.com"; validMin = 2592000; renewInterval = "weekly"; }; Example Nginx vhost: services.nginx.appendConfig = '' http { server { server_name _; listen 80; listen [::]:80; location /.well-known/acme-challenge { root /var/www/challenges; } location / { return 301 https://$host$request_uri; } } } '';
* | | | | | | nixos/test-instrumentation: Set vm.min_free_kbytesaszlig2015-12-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We hit page allocation failures a lot at random for VM tests, in case of my own Hydra when it comes to the installer tests. The reason for this is that once the memory of the VM gets heavily fragmented the kernel is unable to allocate new pages. Setting vm.min_free_kbytes to 16MB forces the kernel to keep a minimum of 16 MB free. I've done some testing accross repeated runs of the installer tests with and without vm.min_free_kbytes set. So accross 30 test runs for each settings, all of the tests with the option being set passed while 14 tests without that sysctl option triggered page allocation failures. Sure, running 30 tests is not a guarantee that 16MB is enough, but we'll see how it turns out in the long run across all VM tests. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
* | | | | | | nixos/kde5: enable SVG icons in GTK programsThomas Tuegel2015-12-12
| |_|_|_|/ / |/| | | | | | | | | | | | | | | | | Fixes #10758.
* | | | | | Merge pull request #11294 from mayflower/service/shairport-syncgoibhniu2015-12-12
|\ \ \ \ \ \ | | | | | | | | | | | | | | shairport-sync service: add module
| * | | | | | shairport-sync service: add moduleFranz Pletz2015-12-12
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new service module for shairport-sync. Tested with a local and remote pulseaudio server. Needs to be run as a user in the pulse group to access pulseaudio.
* | | | | | nixos/sddm: fix indentationThomas Tuegel2015-12-12
| | | | | |
* | | | | | nixos/sddm: add setupScript and stopScript optionsThomas Tuegel2015-12-12
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | These options allow setting the start and stop scripts for the display manager. Making these configurable is necessary to allow some hardware configurations. Upstream ships empty scripts by default, anyway.
* | | | | Merge branch 'plasma-5.5'Thomas Tuegel2015-12-11
|\ \ \ \ \
| * | | | | nixos/tests: test SDDM with KDE 5 enabledThomas Tuegel2015-12-11
| | | | | |
| * | | | | nixos/kde5: enable Breeze SDDM themeThomas Tuegel2015-12-11
| | | | | |
| * | | | | sddm: wrap to include themesThomas Tuegel2015-12-11
| | | | | |
| * | | | | nixos: add sddm test to combined constituentsThomas Tuegel2015-12-11
| | | | | |
| * | | | | nixos/kde5: reformat Phonon backend package listThomas Tuegel2015-12-11
| | | | | |
| * | | | | nixos/kde5: install Breeze icons if availableThomas Tuegel2015-12-11
| | | | | |
| * | | | | nixos/kde5: only install Orion if Breeze GTK unavailableThomas Tuegel2015-12-11
| | | | | |
| * | | | | nixos/kde5: comment on Oxygen icons moveThomas Tuegel2015-12-11
| | | | | |
* | | | | | Merge pull request #11628 from grwlf/allproxyEelco Dolstra2015-12-11
|\ \ \ \ \ \ | | | | | | | | | | | | | | set all_proxy environment variable
| * | | | | | set all_proxy environment variableSergey Mironov2015-12-11
| | | | | | |
* | | | | | | Merge pull request #11565 from jgillich/rktArseniy Seroka2015-12-11
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | rkt: add service
| * | | | | | rkt: add serviceJakob Gillich2015-12-11
| | | | | | |
* | | | | | | Merge pull request #11548 from jgillich/upnpdArseniy Seroka2015-12-10
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | miniupnpd: add service
| * | | | | | | miniupnpd: add serviceJakob Gillich2015-12-09
| | | | | | | |
* | | | | | | | grub: fix typo in variable name (trivial)Nicole Angel2015-12-10
| | | | | | | |