refactor: make path editable without nix and impure

This commit is contained in:
devydave
2026-08-13 19:57:51 +02:00
parent a8c8df8604
commit 02cbf7c014
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -22,6 +22,7 @@
pkgs = nixpkgs.legacyPackages.${system};
publicKey = builtins.readFile ./tests/resources/local_integration_ssh.pub;
privateKey = builtins.readFile ./tests/resources/local_integration_ssh;
pathToRepo = builtins.readFile ./tests/resources/path_to_repo;
# local DNS aliases for the server host
extraHosts = builtins.readFile ./tests/resources/extra_hosts;
username = "abra";
@@ -50,6 +51,7 @@
password
defaultDNS
extraHosts
pathToRepo
;
};
};
+2 -1
View File
@@ -3,6 +3,7 @@
pkgs,
publicKey,
username,
pathToRepo,
defaultDNS,
extraHosts,
...
@@ -35,7 +36,7 @@ in
tag = "repo";
# Source path can be absolute or relative
# to /var/lib/microvms/$hostName
source = "/home/dev/Documents/kum/abra";
source = "${lib.trim pathToRepo}";
mountPoint = "/home/${username}/abra";
}
];
+1
View File
@@ -0,0 +1 @@
/path/to/this/repo