mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
Using ./. forces Nix to copy the flake to the store a second time. Using bulitins.path like this, forcing the name to be "source", reduces the extraneous copy.
39 lines
733 B
Nix
39 lines
733 B
Nix
{ lib }:
|
|
{
|
|
hm = (import ../modules/lib/stdlib-extended.nix lib).hm;
|
|
|
|
homeManagerConfiguration =
|
|
{
|
|
check ? true,
|
|
extraSpecialArgs ? { },
|
|
lib ? pkgs.lib,
|
|
modules ? [ ],
|
|
pkgs,
|
|
}:
|
|
import ../modules {
|
|
inherit
|
|
check
|
|
extraSpecialArgs
|
|
lib
|
|
pkgs
|
|
;
|
|
configuration =
|
|
{ ... }:
|
|
{
|
|
imports = modules ++ [
|
|
{
|
|
programs.home-manager.path = builtins.path {
|
|
path = ../.;
|
|
name = "source";
|
|
};
|
|
}
|
|
];
|
|
|
|
nixpkgs = {
|
|
config = lib.mkDefault pkgs.config;
|
|
|
|
inherit (pkgs) overlays;
|
|
};
|
|
};
|
|
};
|
|
}
|