add extraSpecialArgs
This commit is contained in:
parent
d66f35bb05
commit
2b619a2be2
1 changed files with 21 additions and 18 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
{
|
{
|
||||||
root,
|
root,
|
||||||
|
system,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
specialArgs,
|
specialArgs,
|
||||||
|
|
@ -25,25 +26,27 @@
|
||||||
pathExists
|
pathExists
|
||||||
;
|
;
|
||||||
in {
|
in {
|
||||||
home-manager = {
|
config = {
|
||||||
users =
|
home-manager = {
|
||||||
config.users.users
|
users =
|
||||||
|> attrNames
|
config.users.users
|
||||||
|> filter (x: pathExists (root + "/homes/${x}"))
|
|> attrNames
|
||||||
|> (x: lib.genAttrs x (y: import (root + "/homes/${y}")));
|
|> filter (x: pathExists (root + "/homes/${x}"))
|
||||||
|
|> (x: lib.genAttrs x (y: import (root + "/homes/${y}")));
|
||||||
|
|
||||||
# extraSpecialArgs = specialArgs;
|
extraSpecialArgs = {inherit root system;} // (specialArgs.inputs or {});
|
||||||
sharedModules = [
|
sharedModules = [
|
||||||
# user configuration
|
# user configuration
|
||||||
# (import (root + "/nixpkgs.nix"))
|
# (import (root + "/nixpkgs.nix"))
|
||||||
(import (root + "/nixpkgs.nix"))
|
(import (root + "/nixpkgs.nix"))
|
||||||
# options declarations
|
# options declarations
|
||||||
# (import ./nixpkgs.nix (args // {contextName = "homes";}))
|
# (import ./nixpkgs.nix (args // {contextName = "homes";}))
|
||||||
(import ./nixpkgs.nix (args // {contextName = "homes";}))
|
(import ./nixpkgs.nix (args // {contextName = "homes";}))
|
||||||
];
|
];
|
||||||
|
|
||||||
# disable home-manager trying anything fancy
|
# disable home-manager trying anything fancy
|
||||||
# we control the pkgs now!!
|
# we control the pkgs now!!
|
||||||
# useGlobalPkgs = true;
|
# useGlobalPkgs = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue