summaryrefslogtreecommitdiffstats
path: root/tests/old/infrastructure
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/old/infrastructure/clean.awk23
-rw-r--r--tests/old/infrastructure/default.nix (renamed from tests/infrastructure/default.nix)21
-rw-r--r--tests/old/infrastructure/driver.sh (renamed from tests/infrastructure/driver.sh)11
-rw-r--r--tests/old/infrastructure/run.nix (renamed from tests/infrastructure/run.nix)9
4 files changed, 61 insertions, 3 deletions
diff --git a/tests/old/infrastructure/clean.awk b/tests/old/infrastructure/clean.awk
new file mode 100644
index 00000000..0362d38b
--- /dev/null
+++ b/tests/old/infrastructure/clean.awk
@@ -0,0 +1,23 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
+{
+ # Shell like comments
+ gsub(/^#.*$/, "", $0)
+
+ # Strip leading and trailing white space
+ gsub(/^[[:blank:]]*/, "", $0)
+ gsub(/[[:blank:]]*$/, "", $0)
+
+ # Only accept the line, if it contains something
+ if (NF) {
+ print $0
+ }
+}
diff --git a/tests/infrastructure/default.nix b/tests/old/infrastructure/default.nix
index e0ad6889..4696a99f 100644
--- a/tests/infrastructure/default.nix
+++ b/tests/old/infrastructure/default.nix
@@ -1,3 +1,12 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
{
pkgs,
myPkgs,
@@ -5,7 +14,8 @@
nixos-lib,
extraModules,
sysLib,
- ...
+ nixpkgs_open_prs,
+ system,
}: {
name,
configuration,
@@ -22,7 +32,12 @@ nixos-lib.runTest {
node = {
specialArgs = {
- inherit myPkgs sysLib;
+ inherit
+ myPkgs
+ sysLib
+ nixpkgs_open_prs
+ system
+ ;
};
# Use the nixpkgs as constructed by the `nixpkgs.*` options
pkgs = null;
@@ -32,7 +47,7 @@ nixos-lib.runTest {
machine = {config, ...}: {
imports =
[
- extraModules.home-manager
+ extra_modules.home.home-manager
../../modules/by-name/us/users/module.nix
]
++ configuration.imports;
diff --git a/tests/infrastructure/driver.sh b/tests/old/infrastructure/driver.sh
index 4992b5bc..a8b241d2 100644
--- a/tests/infrastructure/driver.sh
+++ b/tests/old/infrastructure/driver.sh
@@ -1,4 +1,15 @@
#! /usr/bin/env bash
+
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+
set -e
msg() {
diff --git a/tests/infrastructure/run.nix b/tests/old/infrastructure/run.nix
index 5bab3dc4..3148a2d9 100644
--- a/tests/infrastructure/run.nix
+++ b/tests/old/infrastructure/run.nix
@@ -1,3 +1,12 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
{
pkgs,
lib,