Robert Hensing
5bdf63819b
nixos/top-level.nix: Add system.checks
...
Note that this does not add to the `forbiddenDependenciesRegex`
code because that code check should be unaffected as it only checks
output dependencies, not build dependencies.
Build deps are added after that check, if those are enabled in the
first place.
2023-05-11 21:18:38 +02:00
Arian van Putten
6c0935d466
Merge pull request #231140 from NixOS/rosetta-nix-build
...
modules/rosetta: configure nix build sandbox to use rosetta
2023-05-11 14:21:54 -04:00
github-actions[bot]
b9c14e0e61
Merge master into staging-next
2023-05-11 18:01:13 +00:00
Kai Norman Clasen
3142dd9827
nixosTests.vector: fix race condition
2023-05-11 19:45:47 +02:00
Kai Norman Clasen
8989ea2778
nixos/vector: add package
Option
2023-05-11 19:44:50 +02:00
Ilan Joselevich
e4298360d4
Merge pull request #231310 from Kranzes/harmonia
...
nixos/tests/harmonia: check if settings work
2023-05-11 19:23:10 +03:00
Robert Hensing
5c3e59b6d6
Merge pull request #230523 from hercules-ci/fast-nixos-test-eval
...
Fast nixos test eval
2023-05-11 17:34:46 +02:00
Ilan Joselevich
64d505e227
nixos/tests/harmonia: check if settings work
2023-05-11 18:03:14 +03:00
Robert Hensing
16e3647337
nixos/all-tests: Enable readOnlyPkgs by default for runTest
...
Most tests are not affected by this because they use the `handleTest`
function instead.
2023-05-11 16:36:49 +02:00
Robert Hensing
b0e17891f2
nixos/testing/nodes.nix: Do not rely on disabledModules
...
It's just not necessary.
2023-05-11 16:24:01 +02:00
Robert Hensing
0f83261f0e
nixos/testing: Add node.pkgsReadOnly escape hatch
...
By adding this option indirection, a test can declare all by itself
that it needs a custom nixpkgs. This is a more convenient way of
going about this when the caller of the test framework receives a
`node.pkgs` unconditionally.
2023-05-11 16:24:01 +02:00
Robert Hensing
f659db7ba2
nixos/testing: Add node.pkgs option
...
By factoring out this logic, it's easier for other projects to make
use of it this optimization too (and do it correctly).
2023-05-11 16:24:00 +02:00
Robert Hensing
d0b0f9e441
nixosTests.acme: Use a read-only pkgs
...
This speeds up evaluation by a factor 2.
Ballpark figures from my machine:
```
$ time nix-build nixos/release.nix -A tests.acme
/nix/store/q4fxp55k64clcarsx8xc8f6s10szlfvz-vm-test-run-acme
/nix/store/lnfqg051sxx05hclva84bcbnjfc71c8x-vm-test-run-acme
real 1m28.142s
user 1m7.474s
sys 0m7.932s
$ time nix-build nixos/release.nix -A tests.acme
/nix/store/q4fxp55k64clcarsx8xc8f6s10szlfvz-vm-test-run-acme
/nix/store/lnfqg051sxx05hclva84bcbnjfc71c8x-vm-test-run-acme
real 0m38.235s
user 0m33.814s
sys 0m2.283s
```
2023-05-11 16:24:00 +02:00
Robert Hensing
b213791e7e
nixos/all-tests.nix: Add readOnlyPkgs module
2023-05-11 16:24:00 +02:00
K900
9fec1a09bd
nixos/x11/hardware/libinput: enable by default
...
Basically everything Wayland uses this, it's much more actively
maintained than xf86-input-evdev, and we should really be shipping
it by default.
2023-05-11 16:49:10 +03:00
Robert Hensing
f212785e1e
Merge pull request #231246 from yayayayaka/gitlab-test-fix-warning
...
nixosTests.gitlab: Use module system based runner
2023-05-11 15:13:08 +02:00
Robert Hensing
8b2d1e4554
nixos/tests/gitlab.nix: Document running it
...
`nix-build $file` is not possible anymore, so this helps both newcomers and old hands.
It's documented in the manual, but that's far away.
2023-05-11 14:31:21 +02:00
Naïm Favier
ea81a2465e
make-iso9660-image: use __structuredAttrs
...
Makes it easier to enable discarding of references, a feature of Nix
2.14 which requires structured attrs.
2023-05-11 14:25:44 +02:00
Naïm Favier
56226c4674
make-squashfs: use __structuredAttrs
...
Makes it easier to enable discarding of references, a feature of Nix
2.14 which requires structured attrs.
2023-05-11 14:25:31 +02:00
github-actions[bot]
387f5d9a5f
Merge master into staging-next
2023-05-11 12:01:42 +00:00
Martin Weinelt
537d611a75
nixos/sshd: Remove algorithms that do MAC-then-encrypt
...
Algorithms with the -etm suffix calculate the MAC after encryption,
which is generally considered safer.
2023-05-11 12:54:32 +02:00
ajs124
89f2a7f6ee
Merge pull request #231105 from helsinki-systems/upd/mariadb
...
mariadb: 10.4.29, 10.5.20, 10.6.13, 10.10.4, 10.11.3
2023-05-11 12:49:48 +02:00
ajs124
fbfa1ec989
Merge pull request #231190 from aanderse/nixos/automysqlbackup
...
nixos/automysqlbackup: add some missing permissions
2023-05-11 12:47:39 +02:00
wrvsrx
05129aab01
nixos/lib: save triggers of systemd into nix store
2023-05-11 17:38:54 +08:00
Maximilian Bosch
501d0a65d4
nixos/tests/systemd-networkd-vrf: clean up
...
* Removed unused variables
* Deduplicate config for `node{1..3}`
2023-05-11 11:07:54 +02:00
Maximilian Bosch
8ccfd7a659
nixos/tests/systemd-networkd-vrf: fix build
...
For this round of ZHF: #230712
Failing Hydra build: https://hydra.nixos.org/build/219234565
Not sure why this a problem now and not in the past, but routes to
the corresponding `/24`-subnet are only configured if addresses are
specified with the correct CIDR.
2023-05-11 11:04:56 +02:00
Yaya
439625d5d5
nixosTests.gitlab: Use module system based runner
2023-05-11 07:31:13 +00:00
github-actions[bot]
d16e82bf21
Merge master into staging-next
2023-05-11 06:01:36 +00:00
Martin Weinelt
ec7af23e7e
Merge pull request #231153 from helsinki-systems/drop/trusted-grub
...
trustedGrub: remove
2023-05-11 02:05:25 +02:00
github-actions[bot]
079dc4c27d
Merge master into staging-next
2023-05-11 00:02:13 +00:00
Aaron Andersen
55b3b7029d
nixos/automysqlbackup: rename config option to settings
2023-05-10 20:00:09 -04:00
Aaron Andersen
a73e7383c0
nixos/automysqlbackup: add some missing permissions
2023-05-10 19:57:48 -04:00
Ilan Joselevich
a8eea70935
Merge pull request #231113 from Kranzes/harmonia
...
nixos/harmonia: adjust module and test to upstream, harmonia: 0.6.3 -> 0.6.4
2023-05-11 00:37:41 +03:00
figsoda
9eff400dd9
Merge pull request #230939 from figsoda/sniffnet-module
2023-05-10 17:24:47 -04:00
ajs124
96fbdcedcd
trustedGrub: remove
2023-05-10 22:17:56 +02:00
ajs124
1319323458
nixos/grub: turn definition of version option from an error into a warning
...
because a lot of configurations (generated by nixos-generate-config) contain it
2023-05-10 21:51:26 +02:00
ajs124
30bea8d82d
nixos/*: remove boot.grub.version
2023-05-10 21:51:26 +02:00
ajs124
6db7450827
nixos/installer/grub1: remove
2023-05-10 21:51:26 +02:00
Ilan Joselevich
7ecf20b490
nixos/harmonia: adjust module and test to upstream
2023-05-10 22:28:03 +03:00
Arian van Putten
a33d032939
modules/rosetta: configure nix build sandbox to use rosetta
...
With this we can do x86_64 builds on aarch64
2023-05-10 14:28:50 -04:00
Luflosi
ada7f14219
kubo: 0.19.2 -> 0.20.0
...
https://github.com/ipfs/kubo/releases/tag/v0.20.0
When creating a repository with `ipfs init`, `--empty-repo=true` is now the default according to the changelog. Modify the NixOS module to reflect this change and fix the `emptyRepo` setting to work with this change.
2023-05-10 19:50:46 +02:00
ajs124
81244087ab
nixosTests.mysql-replication: fix deprecation warning
2023-05-10 18:22:41 +02:00
Aaron Andersen
dd2c3b1310
nixos/lxc-container: ensure /sbin/init is updated on nixos-rebuild boot
2023-05-10 11:04:07 -04:00
Ryan Lahfa
fe7b996d66
Merge pull request #230857 from s1341/bugfix_pam_sssd
...
nixos/pam: Allow password changing via sssd
2023-05-10 16:56:47 +02:00
Sandro
84b4373d8c
Merge pull request #230550 from Mic92/harmonia
2023-05-10 16:55:06 +02:00
Sandro
dfc76445d0
Merge pull request #228738 from Luflosi/update/aaaaxy
2023-05-10 16:02:19 +02:00
Robert Hensing
cd358fe24e
nixos/all-tests.nix: Set nixpkgs.system
2023-05-10 15:55:09 +02:00
Robert Hensing
e5db80ae48
nixosModules.pkgsReadOnly: init
2023-05-10 15:55:09 +02:00
Robert Hensing
693e2c3287
nixos/eval-config: Remove statically known mkIf
...
mkIf is unnecessary when the condition is statically known - that is
knowable before entering the module evaluation.
By changing this to a precomputed module, we support changing the
defined options to readOnly options.
2023-05-10 15:55:09 +02:00
Robert Hensing
6e594fedb3
nixos/nixpkgs: Use types.pkgs
2023-05-10 15:55:09 +02:00