Home Manager: Difference between revisions

From NixOS Wiki
imported>Krey
No edit summary
imported>Krey
No edit summary
Line 3: Line 3:
== Configuration ==
== Configuration ==


Home Manager is configured in <code>~/.config/nixpkgs/home.nix</code>
Home Manager is can be configured in <code>~/.config/nixpkgs/home.nix</code> or inside configuration.nix.
 
For the latter, add the following to your config
<syntaxhighlight lang="nix>
  imports = [
    ...
    "${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos"
  ];
  home-manager.users.your_username = { ... }
</syntaxhighlight>
 
 
 


=== 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]

Revision as of 15:28, 13 April 2018

Home Manager a basic system for managing a user environment using the Nix package manager together with the Nix libraries found in Nixpkgs. Before attempting to use Home Manager please read the warning.

Configuration

Home Manager is can be configured in ~/.config/nixpkgs/home.nix or inside configuration.nix.

For the latter, add the following to your config

  imports = [
    ...
    "${builtins.fetchTarball https://github.com/rycee/home-manager/archive/master.tar.gz}/nixos"
  ];
  home-manager.users.your_username = { ... }



Examples