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,10 +1,15 @@
{
self,
inputs,
lib,
modulesFromDir,
...
}:
}@inputs:
let
inherit (self.lib)
modulesFromDir
;
inherit (inputs.nixpkgs) lib;
in
let
commonModules =
@ -46,8 +51,6 @@ let
value.imports = [
self.darwinModules.commonModules
self.nixosModules.fish-vendor-completions
inputs.home-manager.darwinModules.home-manager
{
home-manager = {
@ -61,9 +64,7 @@ let
}) (modulesFromDir ./named);
in
{
flake.darwinModules = lib.mergeAttrsList [
{ inherit commonModules; }
named
];
}
lib.mergeAttrsList [
{ inherit commonModules; }
named
]