os/modules/customBuilds.nix

27 lines
739 B
Nix
Raw Normal View History

2021-06-19 18:26:07 +00:00
{ lib, pkgs, self, config, modules, channel, ... }:
{
system.build = {
2021-06-19 18:26:07 +00:00
iso = (config.lib.digga.mkBuild
(config.lib.digga.modules.isoConfig {
inherit self;
fullHostConfig = config;
})
).config.system.build.isoImage;
2021-06-19 18:26:07 +00:00
homes = (config.lib.digga.mkBuild
({ config, ... }: {
home-manager.useUserPackages = lib.mkForce false;
home-manager.sharedModules = [
{
home.sessionVariables = {
inherit (config.environment.sessionVariables) NIX_PATH;
};
xdg.configFile."nix/registry.json".text =
config.environment.etc."nix/registry.json".text;
}
];
})
).config.home-manager.users;
};
}