mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-09 03:56:06 +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,8 +7,16 @@ with lib;
|
||||||
let
|
let
|
||||||
cfg = config.home-manager;
|
cfg = config.home-manager;
|
||||||
|
|
||||||
hmModule = types.submodule ({ name, ... }: {
|
extendedLib = import <home-manager/modules/lib/stdlib-extended.nix> pkgs.lib;
|
||||||
imports = import <home-manager/modules/modules.nix> { inherit lib pkgs; };
|
|
||||||
|
hmModule = types.submoduleWith {
|
||||||
|
specialArgs = { lib = extendedLib; };
|
||||||
|
modules = [
|
||||||
|
({ name, ... }: {
|
||||||
|
imports = import <home-manager/modules/modules.nix> {
|
||||||
|
inherit pkgs;
|
||||||
|
lib = extendedLib;
|
||||||
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
submoduleSupport.enable = true;
|
submoduleSupport.enable = true;
|
||||||
|
|
@ -17,7 +25,9 @@ let
|
||||||
home.username = config.user.userName;
|
home.username = config.user.userName;
|
||||||
home.homeDirectory = config.user.home;
|
home.homeDirectory = config.user.home;
|
||||||
};
|
};
|
||||||
});
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue