diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-09-07 18:47:30 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-09-07 19:01:53 +0200 |
commit | 7503d5a6398791824891dbdc76d271c3815beb36 (patch) | |
tree | 2da70ae7c2a5a47cfdf68762c602a6d007663687 | |
parent | ca9a3fc143e5085bba50cf7721d80a8109223e0a (diff) |
Add util function for getting path of configuration.nix inside container
-rw-r--r-- | nix-utils.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nix-utils.sh b/nix-utils.sh index 382763f..4c59d0e 100644 --- a/nix-utils.sh +++ b/nix-utils.sh @@ -161,3 +161,13 @@ caller_util_get_script() { echo "$SCRIPT" } + +# +# Container helper functions +# + +# get the configuration.nix path for the container by name +container_conf_path() { + echo /var/lib/containers/$1/etc/nixos/configuration.nix +} + |