Home Manager: Difference between revisions

imported>Srid
Examples: my config
imported>Extends
Added description of what we're doing, for beginners.
Line 33: Line 33:
    
    
</syntaxhighlight>
</syntaxhighlight>
Builtins.fetch* are built-in functions, in our example, we are fetching either a github repository (fetchGit), or a tarball (fetchTarball). With fetchGit, we are fetching a specific commit of home-manager (the <code>rev</code> attribute). To get that, we can use [https://github.com/seppeljordan/nix-prefetch-github nix-prefetch-github], which will return a hash (sha256), an owner, a repository, and a commit (rev attribute, that's what we want here). Here, we are pinning 18.09's release, but you may want to change that to the version of NixOS you're using. Use master if you are on unstable.
Finally, in our example, we are fetching home-manager/nixos folder, that allows us to use more options from home-manager, which are options usable by NixOS only.


== Managing your dotfiles ==
== Managing your dotfiles ==