feat: add 'main' special arg to hm
This commit is contained in:
parent
59fa937841
commit
5ceca04074
2 changed files with 16 additions and 10 deletions
|
@ -1,11 +1,17 @@
|
|||
{ config, ... }: {
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
home.sessionVariables = {
|
||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
||||
};
|
||||
xdg.configFile."nix/registry.json".text =
|
||||
config.environment.etc."nix/registry.json".text;
|
||||
}
|
||||
];
|
||||
home-manager = {
|
||||
extraSpecialArgs = {
|
||||
main = config;
|
||||
};
|
||||
|
||||
sharedModules = [
|
||||
{
|
||||
home.sessionVariables = {
|
||||
inherit (config.environment.sessionVariables) NIX_PATH;
|
||||
};
|
||||
xdg.configFile."nix/registry.json".text =
|
||||
config.environment.etc."nix/registry.json".text;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ config, self, lib, pkgs, suites, profiles, inputs, ... }@main: {
|
||||
{ config, self, lib, pkgs, suites, profiles, inputs, ... }: {
|
||||
imports = lib.our.flattenListSet {
|
||||
suites = with suites; [ develop ];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue