mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Set extendedLib for home-manager
This commit is contained in:
parent
d551f63871
commit
0e53bd6b1f
1 changed files with 19 additions and 9 deletions
|
|
@ -7,17 +7,27 @@ with lib;
|
|||
let
|
||||
cfg = config.home-manager;
|
||||
|
||||
hmModule = types.submodule ({ name, ... }: {
|
||||
imports = import <home-manager/modules/modules.nix> { inherit lib pkgs; };
|
||||
extendedLib = import <home-manager/modules/lib/stdlib-extended.nix> pkgs.lib;
|
||||
|
||||
config = {
|
||||
submoduleSupport.enable = true;
|
||||
submoduleSupport.externalPackageInstall = cfg.useUserPackages;
|
||||
hmModule = types.submoduleWith {
|
||||
specialArgs = { lib = extendedLib; };
|
||||
modules = [
|
||||
({ name, ... }: {
|
||||
imports = import <home-manager/modules/modules.nix> {
|
||||
inherit pkgs;
|
||||
lib = extendedLib;
|
||||
};
|
||||
|
||||
home.username = config.user.userName;
|
||||
home.homeDirectory = config.user.home;
|
||||
};
|
||||
});
|
||||
config = {
|
||||
submoduleSupport.enable = true;
|
||||
submoduleSupport.externalPackageInstall = cfg.useUserPackages;
|
||||
|
||||
home.username = config.user.userName;
|
||||
home.homeDirectory = config.user.home;
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
in
|
||||
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue