diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-09-12 20:03:07 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-09-12 20:03:07 +0200 |
commit | ba04a4b03ffef129f85e24e28ca403f6086e4a92 (patch) | |
tree | 7b32cef1ec5d96ab7f24e47a7f49549cf7c3cc06 /nix-utils.sh | |
parent | 4701a8aa55b1923a3b49bc6f892338208f7f68fa (diff) | |
parent | 9d42d87e9f8bea1cbe7939ba94c3b594aeb425d1 (diff) |
Merge pull request #74 from matthiasbeyer/add-container-helpers
Add container helpers
Diffstat (limited to 'nix-utils.sh')
-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 4028004..a289018 100644 --- a/nix-utils.sh +++ b/nix-utils.sh @@ -168,3 +168,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 +} + |