ops/home-manager-ext: add built attribute
This is so we can more easily build these things on CI.
This commit is contained in:
parent
91f6cb3317
commit
c65e8b8a54
1 changed files with 17 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
{ depot, ... }@args:
|
{ depot, lib, pkgs, ... }@args:
|
||||||
let
|
let
|
||||||
cfg = configName: configPath: { ... }: {
|
cfg = configName: configPath: { ... }: {
|
||||||
_module.args = args // {
|
_module.args = args // {
|
||||||
|
@ -10,8 +10,21 @@ let
|
||||||
};
|
};
|
||||||
imports = [ configPath ];
|
imports = [ configPath ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
configs = {
|
||||||
|
base = nixos/lib/home-manager/common.nix;
|
||||||
|
client = nixos/lib/home-manager/client.nix;
|
||||||
|
};
|
||||||
|
|
||||||
|
configModules = lib.mapAttrs cfg configs;
|
||||||
|
|
||||||
|
builtModules = lib.mapAttrs (name: value: (import ../third_party/home-manager/modules {
|
||||||
|
inherit pkgs;
|
||||||
|
|
||||||
|
configuration = value;
|
||||||
|
check = true;
|
||||||
|
})) configModules;
|
||||||
in
|
in
|
||||||
{
|
configModules // {
|
||||||
base = cfg "base" nixos/lib/home-manager/common.nix;
|
built = builtModules;
|
||||||
client = cfg "client" nixos/lib/home-manager/client.nix;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue