depot/ops/home-manager-ext.nix
Luke Granger-Brown 80e85feede home-manager-ext: init
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.
2020-11-23 07:22:00 -08:00

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;
}