mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Drop flake parts
Use native nix functions to speed up and reduce complexity
This commit is contained in:
parent
85e2bd6728
commit
daefd1534f
15 changed files with 501 additions and 423 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue