diff --git a/flake.nix b/flake.nix index 5e5333b5..63f68abb 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ; }; }; diff --git a/nix/hosts/client/configuration.nix b/nix/hosts/client/configuration.nix index d6fe693b..83e8f0c3 100644 --- a/nix/hosts/client/configuration.nix +++ b/nix/hosts/client/configuration.nix @@ -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"; } ]; diff --git a/tests/resources/path_to_repo b/tests/resources/path_to_repo new file mode 100644 index 00000000..7f63cd1e --- /dev/null +++ b/tests/resources/path_to_repo @@ -0,0 +1 @@ +/path/to/this/repo