Luke Granger-Brown
80e85feede
To allow using my home-manager config on Darwin (and other non-NixOS machines), I introduce the concept of home-manager-ext, which gives me a much easier hook to import my config elsewhere.
13 lines
286 B
Nix
13 lines
286 B
Nix
{ depot, ... }@args:
|
|
let
|
|
cfg = configName: configPath: { ... }: {
|
|
_module.args = args // {
|
|
inherit configName;
|
|
};
|
|
imports = [ configPath ];
|
|
};
|
|
in
|
|
{
|
|
base = cfg "base" nixos/lib/home-manager/common.nix;
|
|
client = cfg "client" nixos/lib/home-manager/client.nix;
|
|
}
|