- Install nix using the installer.
- Clone this repo to
~/etc. - Run
nix run ~/etc#apply-home.
The apply command manages files in the home directory. If an apply conflicts with existing files, move those files aside:
nix run ~/etc#apply-home -- -b pre-nix- Update some configs / pull this repo.
- Run
nix run ~/etc#apply-home.
This is a small util to reduce the boilerplate to define home-manager configurations in a flake-parts flake.
To use this util in your flake-parts flake, add this repo as an input and then:
# ...
outputs = inputs@{ ... }:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.<nameofinput>.flakeModules.hm ];
hm-configs."<config name>" = {
system = "<system>";
module = {
# your home-manager config module body here.
};
};
# ...
};