home-manager

home-manager is a tool for managing home directories and user profiles using Nix. To quote, this includes programs, configuration files, environment variables and, well… arbitrary files.

For simple setups where the home manager flake outputs are defined in one file, you may not need to import this module.

For more details and an example, see Home Manager: flake-parts module.

Installation

To use these options, add to your flake inputs:

home-manager.url = "github:nix-community/home-manager";

and inside the mkFlake:

imports = [ inputs.home-manager.flakeModules.home-manager ];

Run nix flake lock and you're set.

Options

flake.homeConfigurations

Instantiated Home Manager configurations.

homeConfigurations is for specific installations. If you want to expose reusable configurations, add them to homeModules in the form of modules, so that you can reference them in this or another flake’s homeConfigurations.

Type: lazy attribute set of raw value

Default: { }

Declared by:

flake.homeManagerModules

Home Manager modules.

You may use this for reusable pieces of configuration, service modules, etc.

Type: lazy attribute set of module

Default: { }

Declared by: