summaryrefslogtreecommitdiffstats
path: root/nixos
AgeCommit message (Collapse)Author
2017-04-20nixos/systemd-boot-builder: Don't write .pyc filesaszlig
This has surfaced since d990aa716327abb018e8352dcf7ba2fcfb4fc34c. The "simpleUefiGummiboot" installer test fails since this commit, because that commit introduced a small check to verify whether the store was altered. While installing NixOS for the first time, the store is usually in /mnt/nix/store and without the read-only bind mount that's preventing programs from altering the store. So after nixos-install is done creating the system closure and setting it as the active system profile, the bootloader is written from the closure inside the chroot. The systemd-boot-builder is invoked during this step, which adds .pyc files for various Python modules of the Python 3 store path, which in turn invalidates the hash of the Python 3 store path itself. At the time the system is booted up again, the nix-store is verified and fails with something like this: path /nix/store/zvm545rqc4d97caqq9h7344bnd06jhzb-python3-3.5.3 was modified! expected hash b2c975f4b8d197443fbb09690fb3f6545e165dd44c9309d7d6df2fce0579ebeb, got bccca19f39c9d26d857ccf1fb72818b2b817967e6d497a25a1283e36ed0acf01 Running the interpreter with the -B argument prevents Python from writing those byte code files: https://docs.python.org/3/using/cmdline.html#cmdoption-B Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-19Merge pull request #24601 from pbogdan/unclutterBenno Fünfstück
unclutter: Fix default value of $DISPLAY
2017-04-18Merge pull request #24962 from makefu/modules/command-not-found/refactorJörg Thalheim
Refactor command-not-found
2017-04-18Revert "grub module: fix efiInstallAsRemovable description"Vladimír Čunát
This reverts commit c2b56626f1a872d06642777193b72d6473c8b97c. It broke creating the manual. I suspect the descriptions are auto-wrapped by <para> and </para>. We've been through this already in 3af715af90. /cc #24978, @zraexy, @Mic92.
2017-04-18display-manager: fix argument handling of sddmJörg Thalheim
previously session type was not correctly set. fixes #23264
2017-04-17grub module: fix efiInstallAsRemovable descriptionzraexy
2017-04-17Merge pull request #24974 from Ericson2314/mapNullableJohn Ericson
Introduce `mapNullable` into lib and use it in a few places
2017-04-17Introduce `mapNullable` into lib and use it in a few placesJohn Ericson
Also simply some configure flag logic my grep also alerted me too.
2017-04-17command-not-found: add optionsmakefu
add option to disable command-not-found as well as option to define dbPath. Disabling this may remove the perl dependency for bash/zsh prompts
2017-04-17Merge pull request #23026 from copumpkin/nixos-install-wipDaniel Peebles
Refactor nixos-install to separate out filesystem build logic
2017-04-16network-interfaces-scripted: Add static parameter for default gatewayMarkus Mueller
2017-04-16Merge pull request #24486 from srp/masterJörg Thalheim
slock needs suid privileges
2017-04-16dhcpcd service: clear exit code of exitHook (#24909)Christian Kögler
* dhcpcd: clear exit code of exitHook * dhcpcd: restart ntp server in oneshot in exit-hook
2017-04-16Merge pull request #24948 from peterhoeg/m/bluetoothJörg Thalheim
bluetooth: use upstream's recommendation for enabling interfaces
2017-04-16Refactor nixos-install to separate out filesystem build logicDan Peebles
The key distinction I'm drawing is that there's a component that deals with the store of the machine being built, and another component for the store building it. The inner part of it assumes nothing from the builder (doesn't need chroot or root powers) so it can run comfortably inside a Nix build, as well as nixos-rebuild. I have some upcoming work that will use that to significantly speed up and streamline image builds for NixOS, especially on virtualized hosts like EC2, but it's also a reasonable speedup on native hosts.
2017-04-16Merge pull request #24900 from pjones/pjones/plex-serviceJoachim F
plex: Don't overwrite primary database on restart
2017-04-16bluetooth: use upstream's recommendation for enabling interfacesPeter Hoeg
bluez no longer recommends spawning "hciconfig <device> up" from a udev rule as the main bluez daemon now supports automatically enabling power for all devices. Reference: http://www.bluez.org/release-of-bluez-5-35/
2017-04-16etcd module: fix extraConf manual linkedef
2017-04-15powertop: add moduleJörg Thalheim
2017-04-15Merge pull request #24921 from peterhoeg/f/k8sJaka Hudoklin
kubernetes: fix interpolation error and move services to own target
2017-04-14plex: Don't overwrite primary database on restartPeter Jones
This change fixes two major issues: 1. If you don't use SIGQUIT to stop Plex it will corrupt its own database :( 2. Newer versions of Plex keep metadata in the `com.plexapp.plugins.library.db` database. This is the file that we copy into `/var/lib/plex/.skeleton`. If we copy the empty database on top of this one the user will lose their entire library metadata. This change skips the copy if the file already exists.
2017-04-14Merge: fixup a bad mergeVladimír Čunát
For details see: https://github.com/NixOS/nixpkgs/commit/24444513fb5#commitcomment-21767916
2017-04-14Merge pull request #24813 from benley/nm-openvpnThomas Tuegel
nixos: Add nm-openvpn to the networkmanager group
2017-04-14Merge #24179: openssh: 7.4p1 -> 7.5p1Vladimír Čunát
2017-04-14murmur service: fix typos from #24830Vladimír Čunát
2017-04-14Merge branch 'staging'Vladimír Čunát
2017-04-13Merge pull request #24830 from mayflower/refactor/boolToStringDaniel Peebles
treewide: use boolToString function
2017-04-13gce/create-gce.sh: rewrite using nix-shell shebang and bash (#24869)Jörg Thalheim
* google-cloud-sdk: 150.0.0 -> 151.0.0 - gce/create-gce.sh: rewrite using nix-shell shebang and bash - allows to run the script without being the same directory - nix-shell install google-cloud-sdk - some shellcheck cleanups and scripting best practice - gce/create-gce.sh: do not clobber NIX_PATH: this allows NIX_PATH to be overwritten to build a different release - gce/create-gce.sh: remove legacy hydra option
2017-04-13k8s: use slice and target for kubernetesPeter Hoeg
2017-04-13k8s: convert int to string to avoid interpolation errorPeter Hoeg
2017-04-13fcron: do not chmod at allJörg Thalheim
fcron does handle permissions on its own correctly
2017-04-13Merge pull request #24843 from mayflower/smokeping_serviceJörg Thalheim
smokeping service: restart on-failure
2017-04-12nixos: escape brackets in systemd unitsDomen Kožar
One day we should just whitelist instead of blacklist chars. Fixes https://github.com/NixOS/nixops/issues/614
2017-04-12smokeping service: restart on-failureTristan Helmich
2017-04-11nixos/lighttpd: set $HOME for gitweb sub-serviceBjørn Forsman
This allows gitweb to expand '~' in /etc/gitconfig. Without a $HOME variable, it fails to list any projects and instead show the text "No such projects found" in the UI. Setting $HOME to the gitweb project root seems like a sensible value.
2017-04-11acme: Add "domain" option to separate domain from nameedanaher
Fixes #24731.
2017-04-11treewide: use boolToString functionFranz Pletz
2017-04-11Merge pull request #24526 from miltador/jetbrainsJörg Thalheim
idea: numerous fixes and improvements
2017-04-10nixos: Add nm-openvpn to the networkmanager groupBenjamin Staffin
This is to satisfy the polkit restriction limiting org.freedesktop.NetworkManager.* dbus messages to members of that group. Should help with #24806
2017-04-11Revert "sddm: Fix test."aszlig
This reverts commit 0a6a06346a3c928a3115dfd700993c5c06b0a1e9. The commit replaced the text to search for from ALICE to BOB, because our OCR detection only caught "BOB FOOBAR" but missed "ALICE FOOBAR" completely. With the improvements to our OCR system this no longer is the case and the test passes successfully with this reverted. Signed-off-by: aszlig <aszlig@redmoonstudios.org> Cc: @shlevy
2017-04-11nixos/testing: Improve quality of OCRaszlig
First of all, we're now using ImageMagick to improve the screenshot so that Tesseract has an esier time to recognize the text. The resulting image of this post-processing is a scaled up black-and-white version with the backgrounds almost entirely removed and the text edges a bit blurred, so the screen shots now more or less resemble an image from a scanner rather. This is what Tesseract is trained for by default. As mentioned in the previous commit we now also use Tesseract 4, which further improves the quality of text recognition. I've spent countless hours just to test different postprocessing variants and testing what works best for our tests and this is the one that worked best so far. It's certainly not perfect and I'd like to avoid the scaling step but we're way better off than before. In addition to this, the OCR process is now done without an intermediate file, solely using pipes. I've tested this using the following VM tests which have OCR enabled: * nixos/tests/chromium.nix -A stable * nixos/tests/emacs-daemon.nix * nixos/tests/installer.nix -A luksroot * nixos/tests/lightdm.nix * nixos/tests/plasma5.nix * nixos/tests/sddm.nix All of the tests still succeed and comparing some of the recognition results to the earlier results it now also detects a lot more text than before this commit. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-11tesseract: Reintroduce enableLanguagesaszlig
I've removed that attribute in 68bc260ca2d71a676dd6afdb3524d4fff483016b, because the language files no longer were distributed as seperate files, but if we for example only want to use the English training data, the closure size of Tesseract gets quite large (around 1.2 GB), which is a bit much just to be able to run NixOS VM tests. For this reason I've also switched the VM tests back to using only the English language. Tested using the following VM tests (the ones that have OCR enabled) on x86_64-linux: * nixos/tests/chromium.nix -A stable * nixos/tests/emacs-daemon.nix * nixos/tests/installer.nix -A luksroot * nixos/tests/lightdm.nix * nixos/tests/plasma5.nix * nixos/tests/sddm.nix Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2017-04-10openssh: 7.4p1 -> 7.5p1Aneesh Agrawal
Release notes are available at https://www.openssh.com/txt/release-7.5. Mostly a bugfix release, no major backwards-incompatible changes. Remove deprecated `UsePrivilegeSeparation` option, which is now mandatory.
2017-04-11tlp service: mask systemd-rfkillNikolay Amiantov
Fixes #24737.
2017-04-10crowd service: fix secure sso cookiesFranz Pletz
Crowd didn't detect a secure connection before.
2017-04-10prometheus service: add scrapeConfigs.params optionFranz Pletz
2017-04-10Merge pull request #24360 from clefru/gce-image-shrink-on-masterJörg Thalheim
Shrink GCE bootstrap image to minimum size, and auto-expand it to actual size on first boot.
2017-04-09networkmanager: fix dispatcher scripts (#24507)pngwjpgh
networkmanager used `source` to mean `text` and wrote dispatcher scripts with the default mode (0666), which means networkmanager wouldn't call them.
2017-04-09nixos: remove duplicate wrapperDir PATH addition (#24703)Timofei Kushnir
2017-04-09avahi-daemon: refactored using some abstractionBas van Dijk