Home Manager: Difference between revisions

imported>Krey
No edit summary
imported>Krey
No edit summary
Line 24: Line 24:
   };
   };
</syntaxhighlight>
</syntaxhighlight>
will make Home Manager generate a .config/git/config file for you.
will make Home Manager generate a <code>.config/git/config</code> file for you.


Even for programs for which Home Manager doesn't have configuration options, you can use it to manage your dotfiles, e.g.
Even for programs for which Home Manager doesn't have configuration options, you can use it to manage your dotfiles, e.g.
Line 30: Line 30:
   home.file.".config/i3blocks/config".source = "${my-dotfile-dir}/i3blocks.conf"
   home.file.".config/i3blocks/config".source = "${my-dotfile-dir}/i3blocks.conf"
</syntaxhighlight>
</syntaxhighlight>
This will create a symlink <code>.config/i3blocks/config</code>.


=== Examples ===
=== Examples ===
* [https://github.com/yrashk/nix-home/blob/master/home.nix Yurii Rashkovskii's home.nix]
* [https://github.com/yrashk/nix-home/blob/master/home.nix Yurii Rashkovskii's home.nix]