summaryrefslogtreecommitdiffstats
path: root/tests/old/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-30 15:15:04 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-30 15:15:04 +0100
commit43dac390967e2e85da0b3fcd84043a77cfaddfd0 (patch)
tree93f09b804bcded8b59db6f619e18ec4b6265b8c2 /tests/old/default.nix
parenttreewide: Align files with the same files in the `nixos-server` repo (diff)
downloadnixos-config-43dac390967e2e85da0b3fcd84043a77cfaddfd0.zip
treewide: Align the rest of the files with the server repository
Diffstat (limited to 'tests/old/default.nix')
-rw-r--r--tests/old/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/tests/old/default.nix b/tests/old/default.nix
new file mode 100644
index 00000000..d13723b4
--- /dev/null
+++ b/tests/old/default.nix
@@ -0,0 +1,50 @@
+# 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>.
+{
+ lib,
+ nixLib,
+ pkgs,
+ myPkgs,
+ nixpkgs_as_input,
+ sysLib,
+ extraModules,
+ nixpkgs_open_prs,
+ system,
+}: let
+ mkTest = import ./infrastructure {
+ inherit
+ pkgs
+ lib
+ nixos-lib
+ myPkgs
+ extraModules
+ sysLib
+ nixpkgs_open_prs
+ system
+ ;
+ };
+
+ nixos-lib = import (nixpkgs_as_input + "/nixos/lib") {};
+
+ tests = nixLib.mkByName {
+ baseDirectory = ./by-name;
+ fileName = "test.nix";
+ finalizeFunction = name: value:
+ import value {
+ inherit
+ mkTest
+ extraModules
+ pkgs
+ myPkgs
+ ;
+ };
+ };
+in
+ tests