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
# generic modules that can be enabled on all devices
@ -51,11 +56,9 @@ let
}) (modulesFromDir ./named);
in
{
flake.nixosModules = lib.mergeAttrsList [
{ commonModules.imports = lib.attrValues common; }
common
extra
named
];
}
lib.mergeAttrsList [
{ commonModules.imports = lib.attrValues common; }
common
extra
named
]