about summary refs log tree commit diff
path: root/nix/modules/libvirtnix/test.nix
diff options
context:
space:
mode:
authorEmile <git@emile.space>2025-05-07 21:42:04 +0200
committerEmile <git@emile.space>2025-05-07 21:42:04 +0200
commitd72fee53142fe38b2ddd0a73c76bc80c81951710 (patch)
treeaac9fc9236f64ad042dd4c7e189ed605a2f653a3 /nix/modules/libvirtnix/test.nix
parent3b9564639c26be02aa8e60fcc5bd05dcafda18f9 (diff)
(corrino) basic libvirtnix setup
Build using

; nix-build test.nix -A config.services.emile.libvirtnix.output.domain --show-trace && cat result | xq

Generates a result symlink to an xml file that is generated from config.nix
Diffstat (limited to 'nix/modules/libvirtnix/test.nix')
-rw-r--r--nix/modules/libvirtnix/test.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/nix/modules/libvirtnix/test.nix b/nix/modules/libvirtnix/test.nix
new file mode 100644
index 0000000..8542b7e
--- /dev/null
+++ b/nix/modules/libvirtnix/test.nix
@@ -0,0 +1,10 @@
+let
+	pkgs = import <nixpkgs> {};
+in
+	pkgs.lib.evalModules {
+		modules = [
+			# ./secret.nix
+			./domain.nix
+			./config.nix
+		];
+	}