summary refs log tree commit diff
path: root/nixos
AgeCommit message (Collapse)AuthorFilesLines
2021-05-11nixos/tor: fix HidServAuth (#122439)Tom1-2/+8
* add an example for services.tor.settings.HidServAuth * fix HidServAuth validation to require ".onion" Per https://manpages.debian.org/testing/tor/torrc.5.en.html : > Valid onion addresses contain 16 characters in a-z2-7 plus ".onion"
2021-05-11Merge pull request #122423 from Izorkin/update-netdataJörg Thalheim1-7/+17
nixos/netdata: update configuration
2021-05-10Merge pull request #121785 from dotlambda/dendrite-renameRobert Schütz2-19/+19
matrix-dendrite: rename to dendrite
2021-05-10nixos/ssm-agent: conf files written to /etcJoe DeVivo1-4/+11
ssm-agent expects files in /etc/amazon/ssm. The pkg substitutes a location in the nix store for those default files, but if we ever want to adjust this configuration on NixOS, we'd need the ability to modify that file. This change to the nixos module writes copies of the default files from the nix store to /etc/amazon/ssm. Future versions can add config, but right now this would allow users to at least write out a text value to environment.etc."amazon/ssm/amazon-ssm-agent.json".text to provide their own config.
2021-05-10Merge pull request #121450 from samueldr/feature/cross-uefi-isoSamuel Dionne-Riel1-5/+13
iso-image: Fixes for cross-compilation
2021-05-10Merge pull request #121834 from samueldr/feature/raspberrypi4-image-cleanupSamuel Dionne-Riel4-37/+0
sd_image_raspberrypi4: Remove, as planned initially
2021-05-10Merge pull request #95050 from paumr/bind-fmtSandro1-11/+12
2021-05-10nixos/netdata: change wrappers permissionsIzorkin1-5/+5
2021-05-10nixos/netdata: use cgroup v2Izorkin1-0/+1
2021-05-10nixos/netdata: cgroup-network: don't use AmbientCapabilitiesIzorkin1-3/+12
2021-05-10Merge pull request #121394 from bjornfor/atd-file-creationMichele Guerini Rocco1-8/+3
nixos/atd: prefer 'install' over 'mkdir/chmod/chown'
2021-05-10Merge pull request #121395 from bjornfor/nixos-wpa-supplicantMichele Guerini Rocco1-11/+2
nixos/wpa_supplicant: prefer 'install' over 'touch/chmod/mkdir/chgrp'
2021-05-09Merge pull request #122301 from Izorkin/update-test-unit-phpGuillaume Girol1-1/+1
nixos/tests/unit-php: require one of users.users.name.{isSystemUser,isNormalUser}
2021-05-09nixosTests.systemd-networkd: remove wireguard kernel moduleFélix Baylac-Jacqué1-1/+0
config.boot.kernelPackages.wireguard evaluates to null on machine closure having a > 5.6 Linux kernels, hence making the evaluation of this test fail. Wireguard is now part of the mainline Linux kernel, we do not need to to add it via a additional kernel module anymore for this test.
2021-05-09Merge pull request #122099 from alekna/fix/dockerLuke Granger-Brown2-0/+7
nixos/docker: ensure ipv4 forwarding is enabled
2021-05-09Merge pull request #121791 from dotlambda/sudo-execWheelOnlyMichele Guerini Rocco2-4/+45
nixos/sudo: add option execWheelOnly
2021-05-09nixos/tests/unit-php: require one of ↵Izorkin1-1/+1
users.users.name.{isSystemUser,isNormalUser}
2021-05-09Merge pull request #122282 from roberth/docker-tools-reenable-lintRobert Hensing3-9/+0
nixos/tests/docker-tools*: enable linting
2021-05-09nixos/testing-python.nix: Move makeWrapper to nativeBuildInputsRobert Hensing1-1/+1
2021-05-09Revert "nixos/tests/docker-tools*: remove useless formatter"Robert Hensing3-9/+0
Annoyed with the interference of the python formatting of generated code (see #72964), I took matters into my own hands as maintainer of dockerTools. Afterwards, I've created a PR, hoping to unstuck the discussion. @aszlig took notice and thanks to his python ecosystem knowledge, the testing efforts of @blaggacao and @Ma27, and a sense of shared suffering and comraderie we were able to change the situation for the better in #122201. Now, we have a proper linter that actually helps contributors, so it's time to turn it back on again. I'm glad we could make it happen this quickly! Thanks! This reverts commit 4035049af3e45554ffc4d8b4c30fd43ae9cd328a.
2021-05-09nixos/test/virtualbox: Fix linting errorsaszlig1-13/+7
There were a bunch of unnecessary f-strings in there and I also removed the "# fmt: on/off" comments, because we no longer use Black and thus won't need those comments anymore. Signed-off-by: aszlig <aszlig@nix.build>
2021-05-09nixos/tests/unbound: Remove unused 'json' importaszlig1-1/+0
Signed-off-by: aszlig <aszlig@nix.build>
2021-05-09nixos/testing: lint jellyfin testDavid Arnold1-3/+2
2021-05-09nixos/tests/shadow: Fix linting errorsaszlig1-12/+12
Linter errors reported: 6:32 f-string is missing placeholders 7:26 f-string is missing placeholders 8:32 f-string is missing placeholders 30:32 f-string is missing placeholders 31:26 f-string is missing placeholders 32:32 f-string is missing placeholders 48:32 f-string is missing placeholders 49:26 f-string is missing placeholders 50:32 f-string is missing placeholders 76:32 f-string is missing placeholders 77:26 f-string is missing placeholders 78:32 f-string is missing placeholders Signed-off-by: aszlig <aszlig@nix.build>
2021-05-09nixos/tests/printing: Remove unused 'sys' importaszlig1-1/+0
Signed-off-by: aszlig <aszlig@nix.build>
2021-05-09nixos/tests/networking: Fix str literal comparisonaszlig1-3/+3
Linter error: use ==/!= to compare constant literals (str, bytes, int, float, tuple) Signed-off-by: aszlig <aszlig@nix.build>
2021-05-09nixos/tests/yggdrasil: Fix linting erroraszlig1-1/+1
Linter error was: f-string is missing placeholders Signed-off-by: aszlig <aszlig@nix.build>
2021-05-09nixosTests.custom-ca: lintMaximilian Bosch1-0/+1
2021-05-09nixosTests.containers-imperative: lintMaximilian Bosch1-1/+1
2021-05-09nixosTests.containers-custom-pkgs: lintMaximilian Bosch1-1/+1
The new linter basically does def testScript # ... before calling `pyflakes`. As this test-script is empty, it would lead to a syntax-error unless `pass` is added.
2021-05-09nixosTests.chromium: lintMaximilian Bosch1-1/+2
Note: I didn't execute it entirely because I'd have to build chromium for this, but the diff appears fine.
2021-05-09nixos/tests/nfs: lintRobert Hensing1-4/+4
2021-05-09nixosTests.acme: lintRobert Hensing1-1/+1
2021-05-09nixos/testing: Set up scope for testScript linterRobert Hensing1-1/+16
Our test driver exposes a bunch of variables and functions, which pyflakes doesn't recognise by default because it assumes that the test script is executed standalone. In reality however the test driver script is using exec() on the testScript. Fortunately pyflakes has $PYFLAKES_BUILTINS, which are the attributes that are globally available on all modules to be checked. Since we only have one module, using this environment variable is fine as opposed to my first approach to this, which tried to use the unstable internal API of pyflakes. The attributes are gathered by the main derivation of the test driver, because we don't want to end up defining a new attribute in the test driver module just to being confused why using it in a test will result in an error. Another way we could have gathered these attributes would be in mkDriver, which is where the linting takes place. However, we do have a different set of Python dependencies in scope and duplicating these will again just cause confusion over having it at one location only. Signed-off-by: aszlig <aszlig@nix.build> Co-Authored-By: aszlig <aszlig@nix.build>
2021-05-09nixos/testing-python.nix: Expose driverRobert Hensing1-1/+3
(cherry picked from commit a2c9220568648b4528154ebd8e657add243ed0b4)
2021-05-09nixos/testing: Switch from black to pyflakesaszlig1-1/+1
So far, we have used "black" for formatting the test code, which is rather strict and opinionated and when used inline in Nix expressions it creates all sorts of trouble. One of the main annoyances is that when using strings coming from Nix expressions (eg. store paths or option definitions from NixOS modules), completely unrelated changes could cause tests to fail, since eg. black wants lines to be broken. Another downside of enforcing a certain kind of formatting is that it makes the Nix expression code inconsistent because we're mixing two spaces of indentation (common in nixpkgs) with four spaces of indentation as defined in PEP-8. While this is perfectly fine for standalone Python files, it really looks ugly and inconsistent IMO when used within Nix strings. What we actually want though is a linter that catches problems early on before actually running the test, because this is *actually* helping in development because running the actual VM test takes much longer. This is the reason why I switched from black to pyflakes, because the latter actually has useful checks, eg. usage of undefined variables, invalid format arguments, duplicate arguments, shadowed loop vars and more. Signed-off-by: aszlig <aszlig@nix.build> Closes: https://github.com/NixOS/nixpkgs/issues/72964
2021-05-08nixos/sudo: add option execWheelOnlyRobert Schütz2-4/+45
By setting the executable's group to wheel and permissions to 4510, we make sure that only members of the wheel group can execute sudo.
2021-05-08nixos/bind: formatted with nixpkgs-fmtpaumr1-11/+12
2021-05-08Merge pull request #121927 from rissson/nixos-unbound-fix-top-level-includeRobert Hensing1-2/+2
nixos/unbound: allow list of strings in top-level settings option type
2021-05-08nixos/docker: ensure ipv4 forwarding is enabledLaurynas Alekna2-0/+7
Fixes #118656
2021-05-08nixos/unbound: allow list of strings in top-level settings option typeMarc 'risson' Schmitt1-2/+2
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2021-05-08nixosTests.systemd-confinement: fix script formatdivanorama1-1/+2
https://hydra.nixos.org/build/142591177/nixlog/30 ZHF: #122042
2021-05-08Merge pull request #121746 from j0hax/monero-optionsAaron Andersen2-9/+15
nixos/monero: add dataDir option
2021-05-08Merge pull request #122192 from roberth/docker-tools-stimulate-testingRobert Hensing3-2/+11
dockerTools testing update
2021-05-08nixos/tests/docker-tools*: remove useless formatterRobert Hensing3-0/+9
2021-05-08nixos/tests/docker-tools*: Add myself as maintainer where missingRobert Hensing2-2/+2
I should have done this when I became maintainer for dockerTools, but it's the PR reviews that matter.
2021-05-08Merge #121780: treewide meta.maintainers tweaksVladimír Čunát10-10/+9
2021-05-08nixos/yggdrasil: set directory permissions before writing keysGemini Lasswell1-3/+2
Remove the opportunity for someone to read the keys in between when they are written and when the chmod is done. Addresses #121293.
2021-05-08gnome: rename from gnome3Jan Tojnar54-250/+432
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
2021-05-08Merge pull request #114374 from oxalica/lib/platform-support-checkSilvan Mosberger1-1/+1
lib.meta: introduce `availableOn` to check package availability on given platform