feat: add 'main' special arg to hm

This commit is contained in:
Infinidoge 2021-10-15 09:21:34 -04:00
parent 59fa937841
commit 5ceca04074
2 changed files with 16 additions and 10 deletions

View file

@ -1,11 +1,17 @@
{ config, ... }: { { config, ... }: {
home-manager.sharedModules = [ home-manager = {
{ extraSpecialArgs = {
home.sessionVariables = { main = config;
inherit (config.environment.sessionVariables) NIX_PATH; };
};
xdg.configFile."nix/registry.json".text = sharedModules = [
config.environment.etc."nix/registry.json".text; {
} home.sessionVariables = {
]; inherit (config.environment.sessionVariables) NIX_PATH;
};
xdg.configFile."nix/registry.json".text =
config.environment.etc."nix/registry.json".text;
}
];
};
} }

View file

@ -1,4 +1,4 @@
{ config, self, lib, pkgs, suites, profiles, inputs, ... }@main: { { config, self, lib, pkgs, suites, profiles, inputs, ... }: {
imports = lib.our.flattenListSet { imports = lib.our.flattenListSet {
suites = with suites; [ develop ]; suites = with suites; [ develop ];
}; };