| I can either use my home manager as a standalone entry in my flake.nix:
homeConfigurations.nicolas = home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = inputs // {
inNixOS = false;
};
pkgs = import nixpkgs-unstable {
system = "x86_64-linux";
overlays = [ self.overlays.openpnp ];
};
modules = [ ./users/nicolas/home.nix ];
};
Or as a module to import in my NixOS configuration:
{ home-manager, ...}@inputs:
{
imports = [
home-manager.nixosModules.home-manager
];
home-manager = {
users.nicolas.imports = [ ./home.nix ];
users.nicolas._module.args = {
inNixOS = true;
} // inputs;
};
}
The inNixOS argument is nothing special, this is just an extra attribute I give as argument to the home-manager modules to tune it differently.
|