deploy: 499cbc2d368381c565a9de32f1a5f4e1fbcf7636

This commit is contained in:
davegallant
2021-09-09 14:02:24 +00:00
parent 6e7d93f61c
commit b0295ea96f
2 changed files with 2 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ tech blog
<p>For example, I have used nix to install the package <a href="https://search.nixos.org/packages?channel=unstable&show=bind&from=0&size=50&sort=relevance&type=packages&query=bind">bind</a> which includes <code>dig</code>. You can see that it is available on multiple platforms. The absolute path of <code>dig</code> can be found by running:</p>
<pre tabindex=0><code class=language-console data-lang=console> ls -lh $(which dig)
lrwxr-xr-x 73 root 31 Dec 1969 /run/current-system/sw/bin/dig -&gt; /nix/store/0r4qdyprljd3dki57jn6c6a8dh2rbg9g-bind-9.16.16-dnsutils/bin/dig
</code></pre><p>Notice that there is a hash included in file path? This is nix store path and is computed by the nix package manager. This <a href=https://nixos.org/guides/nix-pills/nix-store-paths.html>nix pill</a> does a good job explaining how this hash is computed. All of the nix pills are worth a read, if you are interested in learning more about nix itself. However, using home-manager does not require extensive knowledge of nix.</p>
</code></pre><p>Notice that there is a hash included in file path? This is a nix store path and is computed by the nix package manager. This <a href=https://nixos.org/guides/nix-pills/nix-store-paths.html>nix pill</a> does a good job explaining how this hash is computed. All of the nix pills are worth a read, if you are interested in learning more about nix itself. However, using home-manager does not require extensive knowledge of nix.</p>
<p>Part of the nix ecosystem includes <a href=https://github.com/NixOS/nixpkgs>nixpkgs</a>. Many popular tools can be found already packaged in this repository. As you can see with these <a href=https://repology.org/repositories/statistics/total>stats</a>, there is a large number of existing packages that are being maintained by the community. Contributing a new package is easy, and anyone can do it!</p>
<p>home-manager leverages the nix package manager (and nixpkgs), as well the nix language so that you can declaratively define your system configuration. I store my <a href=https://github.com/davegallant/nix-config>nix-config</a> in git so that I can keep track of my packages and configurations, and retain a clean and informative git commit history so that I can understand what changed and why.</p>
<h2 id=setting-up-home-manager>Setting up home-manager</h2>
@@ -219,9 +219,7 @@ nix-shell <span style=color:#e6db74>&#39;&lt;home-manager&gt;&#39;</span> -A ins
settings <span style=color:#f92672>=</span> {
add_newline <span style=color:#f92672>=</span> <span style=color:#66d9ef>false</span>;
gcloud <span style=color:#f92672>=</span> { disabled <span style=color:#f92672>=</span> <span style=color:#66d9ef>true</span>; };
scan_timeout <span style=color:#f92672>=</span> <span style=color:#ae81ff>10</span>;
character <span style=color:#f92672>=</span> { error_symbol <span style=color:#f92672>=</span> <span style=color:#e6db74>&#34;[✖](bold red)&#34;</span>; };
};
};

File diff suppressed because one or more lines are too long