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
|
||||
|
||||
{ depot, ... }@args:
|
||||
{ depot, lib, pkgs, ... }@args:
|
||||
let
|
||||
cfg = configName: configPath: { ... }: {
|
||||
_module.args = args // {
|
||||
|
@ -10,8 +10,21 @@ let
|
|||
};
|
||||
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
|
||||
{
|
||||
base = cfg "base" nixos/lib/home-manager/common.nix;
|
||||
client = cfg "client" nixos/lib/home-manager/client.nix;
|
||||
configModules // {
|
||||
built = builtModules;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue