aboutsummaryrefslogtreecommitdiff
path: root/posts/git-to-deploy.njk
diff options
context:
space:
mode:
Diffstat (limited to 'posts/git-to-deploy.njk')
-rw-r--r--posts/git-to-deploy.njk3
1 files changed, 2 insertions, 1 deletions
diff --git a/posts/git-to-deploy.njk b/posts/git-to-deploy.njk
index 9676602..6ec1ec8 100644
--- a/posts/git-to-deploy.njk
+++ b/posts/git-to-deploy.njk
@@ -24,7 +24,7 @@ It makes use of git, so it allows me to make my changes using a git flow
similar to Heroku. Here is what the installation script looks like:</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Start of by adding git to our configuration.nix, we will levarage this to</span></span>
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="co"># be able to easily make changes to our machine without SSH.</span></span>
-<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">sed</span> <span class="at">-i</span> <span class="st">&#39;s/}/ programs.git.enable = true;\n}/g&#39;</span> /etc/nixos/configuration.nix</span>
+<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a><span class="fu">sed</span> <span class="at">-i</span> <span class="st">&#39;s/^{$/{\n programs.git.enable = true;/&#39;</span> /etc/nixos/configuration.nix</span>
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a></span>
<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a><span class="co"># Rebuild nix so we have git available</span></span>
<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a><span class="ex">nixos-rebuild</span> switch</span>
@@ -83,3 +83,4 @@ href="https://sourcehut.org/">Sourcehut</a>, you can do so easily:</p>
href="https://github.com/elitak/nixos-infect/tree/master">Nixos-infect</a>
to setup NixOS on a VPC that I rent on Hetzner Cloud.</p>
<p>Edit: Thanks to Valentin Gagarin for pointing out the distinction between Nix and NixOS. I have updated the article to correctly call it NixOS instead of Nix.</p>
+<p>Edit2: Thanks to James T on NixOS Discourse for pointing out some errors in the script. I've updated them accordingly.</p>