treewide: refactor custom lib, merge lists in hm/nixos module

This commit is contained in:
diniamo 2024-07-07 19:37:46 +02:00
commit a376eed0df
13 changed files with 308 additions and 256 deletions

18
lib/configuration.nix Normal file
View file

@ -0,0 +1,18 @@
{
inputs,
lib,
}: let
modulesWithInputs = import ../modules inputs;
in
{
modules ? [],
pkgs,
check ? true,
extraSpecialArgs ? {},
extraModules ? [],
...
}:
modulesWithInputs {
inherit pkgs lib check extraSpecialArgs extraModules;
configuration.imports = modules;
}