aboutsummaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2024-03-03 19:31:13 -0600
committerMarc Coquand <marc@mccd.space>2024-03-03 19:31:13 -0600
commit455dae7a13008dab0ebb292ac74fb00db197974c (patch)
tree2d47fecad56cd5944c33b54ed87f94d9eedab1db /posts
parent787df615b8ed88b34c903a5216998298b43abb60 (diff)
downloadmccd.space-455dae7a13008dab0ebb292ac74fb00db197974c.tar.gz
mccd.space-455dae7a13008dab0ebb292ac74fb00db197974c.tar.bz2
mccd.space-455dae7a13008dab0ebb292ac74fb00db197974c.zip
Update git to deploy with working script
Diffstat (limited to 'posts')
-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>