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,5 +1,10 @@
{ config, ... }: { { config, ... }: {
home-manager.sharedModules = [ home-manager = {
extraSpecialArgs = {
main = config;
};
sharedModules = [
{ {
home.sessionVariables = { home.sessionVariables = {
inherit (config.environment.sessionVariables) NIX_PATH; inherit (config.environment.sessionVariables) NIX_PATH;
@ -8,4 +13,5 @@
config.environment.etc."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 ];
}; };