Drop flake parts

Use native nix functions to speed up and reduce complexity
This commit is contained in:
Primrose 2025-02-05 19:02:18 +01:00
parent 85e2bd6728
commit daefd1534f
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
15 changed files with 501 additions and 423 deletions

View file

@ -1,11 +1,16 @@
{
self,
inputs,
lib,
modulesFromDir,
mergeAttrsWith,
...
}:
}@inputs:
let
inherit (self.lib)
modulesFromDir
mergeAttrsWith
;
inherit (inputs.nixpkgs) lib;
in
let
common =
@ -32,14 +37,12 @@ let
}) (modulesFromDir ./named);
in
{
flake.homeModules = lib.mergeAttrsList [
{
commonModules.imports = lib.attrValues common;
extraModules.imports = lib.attrValues extra;
}
common
extra
named
];
}
lib.mergeAttrsList [
{
commonModules.imports = lib.attrValues common;
extraModules.imports = lib.attrValues extra;
}
common
extra
named
]