mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-14 12:20:19 +00:00
deploy: 499cbc2d368381c565a9de32f1a5f4e1fbcf7636
This commit is contained in:
@@ -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 -> /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>'<home-manager>'</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>"[✖](bold red)"</span>; };
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user