ops/home-manager-ext: add built attribute

This is so we can more easily build these things on CI.
This commit is contained in:
Luke Granger-Brown 2021-04-09 18:14:31 +00:00
parent 91f6cb3317
commit c65e8b8a54

View file

@ -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;
}