diff options
author | tdro <tdro@users.noreply.github.com> | 2022-04-25 00:55:59 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2022-04-25 01:01:22 -0400 |
commit | 02ffa4892825796502d275a6c3d6fd174dbee4a6 (patch) | |
tree | 2193be6d118083c88a3f88a4c7ac57fee75bbefc | |
parent | 337428c6051a1a0a2c29935705628bbae6b2c416 (diff) | |
download | dotfiles-02ffa4892825796502d275a6c3d6fd174dbee4a6.tar.gz dotfiles-02ffa4892825796502d275a6c3d6fd174dbee4a6.tar.bz2 dotfiles-02ffa4892825796502d275a6c3d6fd174dbee4a6.zip |
.local/bin/nixos-test: Cover inline case
Ultra hacky.
-rwxr-xr-x | .local/bin/nixos-test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/nixos-test b/.local/bin/nixos-test index e87bd9e..c850d13 100755 --- a/.local/bin/nixos-test +++ b/.local/bin/nixos-test @@ -18,7 +18,8 @@ for configuration in "$@"; do nixfmt "$configuration" - awk '!s {s=sub("^{$","{ boot.isContainer = true;")}{ print $0 }' "$configuration" | sponge "$configuration" + awk '!s {s=sub("^{$","{ boot.isContainer = true;")}{ print $0 }' "$configuration" | sponge "$configuration" + awk '!s {s=sub("}: {","}: { boot.isContainer = true;")}{ print $0 }' "$configuration" | sponge "$configuration" awk '!s {s=sub("^in {$","in { boot.isContainer = true;")}{ print $0 }' "$configuration" | sponge "$configuration" printf '%s ' "$configuration"; |