flake: home-manager: refactor 'mkHome'
This will allow making a similar function for NixOS homes.
This commit is contained in:
parent
8c44cc9ab8
commit
ad97f6d007
1 changed files with 3 additions and 4 deletions
|
|
@ -25,12 +25,10 @@ let
|
||||||
"${self}/modules/common"
|
"${self}/modules/common"
|
||||||
];
|
];
|
||||||
|
|
||||||
mkHome = name: system: inputs.home-manager.lib.homeManagerConfiguration {
|
mkHomeCommon = mainModules: system: inputs.home-manager.lib.homeManagerConfiguration {
|
||||||
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
||||||
|
|
||||||
modules = defaultModules ++ [
|
modules = defaultModules ++ mainModules;
|
||||||
"${self}/hosts/homes/${name}"
|
|
||||||
];
|
|
||||||
|
|
||||||
# Use my extended lib in NixOS configuration
|
# Use my extended lib in NixOS configuration
|
||||||
inherit (self) lib;
|
inherit (self) lib;
|
||||||
|
|
@ -41,6 +39,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mkHome = name: mkHomeCommon [ "${self}/hosts/homes/${name}" ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
hosts.homes = {
|
hosts.homes = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue