Commit graph

24 commits

Author SHA1 Message Date
Sizhe Zhao
f34483be5e
nixosTests: handleTest -> runTest, batch 1
Reference: https://github.com/NixOS/nixpkgs/issues/386873
2025-05-26 20:40:17 +08:00
Tristan Ross
816b6de307
nixosTests: fix pure eval by setting system to null 2025-05-04 22:34:56 -07:00
Tristan Ross
727fafa66f
nixosTests: pass thru pkgs when available 2025-04-25 11:39:19 -07:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
tilpner
0c24185366 nixos: set system.stateVersion from the nixpkgs release, not version
The nixpkgs/nixos version includes a suffix like "pre-git" or
"pre676716.6f16e67b4921", which does not match the conventional
"XX.YY" format of system.stateVersion.

Unifying the format to "XX.YY" allows for (stricter) validation (see #317858),
and the introduction in 3a5ff9a68c was
only concerned with silencing warnings, so the addition of the "pre.*"
suffix into stateVersion was probably unintentional.
2024-09-23 12:18:11 +02:00
Christian Kögler
181e82f4b2 nixos/tests/machinectl: add workaround for nix-build 2024-06-10 07:42:21 +02:00
Christian Kögler
ff16d4597f nixos/test/machinectl: set stateVersion 2024-04-01 20:09:11 +02:00
Christian Kögler
20e50bbb92 nixos/tests/machinectl: add import-tar test 2024-04-01 17:57:30 +02:00
Christian Kögler
aefaae0c9d nixos/tests/machinectl: auto-format test 2024-04-01 17:25:30 +02:00
Christian Kögler
f4f99bf8cc nixos/tests/machinectl: Add declarative shared container 2024-03-14 22:07:58 +01:00
Christian Kögler
bdd7e48646 nixos/test/machinectl: Add test for shared nix store 2024-03-12 23:27:45 +01:00
Christian Kögler
de52b2b49e nixos/tests/machinectl: Make network routable 2024-03-12 23:27:45 +01:00
Christian Kögler
9bb2a979d4 nixos/tests/machinectl: Disable tmpfs for /tmp 2022-10-27 20:19:18 +02:00
Christian Kögler
c4e0d766b7 nixos/unitGenerator: fix generation for nspawn files 2022-10-23 15:57:55 +02:00
Christian Kögler
155c7b11a5 nixos/test: Fix system for systemd-machinectl 2022-09-19 13:33:32 +02:00
Christian Kögler
7721c9db08 nixos/test: Remove workaround for broken nscd 2022-08-16 21:22:49 +02:00
Christian Kögler
8d2fd875b7 nixos/test/systemd-machinectl: Add auto-start test 2022-08-16 07:36:57 +02:00
Christian Kögler
68973d60a2 nixos/tests/systemd-machinectl: Fix resolved and UID shift check 2022-07-30 22:32:12 +02:00
Robert Hensing
aa0f27abb0 treewide: machine -> nodes.machine 2022-03-28 14:11:58 +02:00
Christian Kögler
57fc08cfdb nixos: Switch to default systemd-nspawn behaviour 2022-02-19 09:52:37 +01:00
Vladimír Čunát
f760f0ef48
Revert "Merge #67232: machinectl compliant NixOS installation"
This reverts commit 66967ec752, reversing
changes made to fb6595eafd.
Fixes #70442; discussion: https://github.com/NixOS/nixpkgs/pull/70027
2019-10-07 20:56:59 +02:00
Christian Kögler
db9b5f5525
nixos: deactivate immutablity for /var/empty in container 2019-09-13 17:33:38 +02:00
Christian Kögler
930ac600d2
nixos-install: ensure activation script is always called
The activation script is needed to get the missing files in etc/ created.
Needed for container manager like systemd-nspawn.
2019-09-13 17:33:34 +02:00
Christian Kögler
65792923af
nixos: added machinectl test 2019-09-13 17:33:11 +02:00