mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nix: remove module export in flake
This commit is contained in:
parent
d15061dd8d
commit
e2bdc9aacf
4 changed files with 2 additions and 72 deletions
|
|
@ -1,33 +0,0 @@
|
|||
{self, ...} @ inputs: let
|
||||
inherit
|
||||
(self.lib)
|
||||
modulesFromDir
|
||||
mergeAttrsWith
|
||||
;
|
||||
|
||||
inherit (inputs.nixpkgs) lib;
|
||||
|
||||
# generic modules that can be enabled on all devices
|
||||
common =
|
||||
mergeAttrsWith (x: y: {imports = [x y];})
|
||||
(modulesFromDir ./common)
|
||||
{
|
||||
agenix = inputs.agenix.nixosModules.default;
|
||||
url-eater = inputs.url-eater.nixosModules.default;
|
||||
};
|
||||
|
||||
# extra opt-in configurations
|
||||
extra = modulesFromDir ./extra;
|
||||
|
||||
# per host configuration
|
||||
named =
|
||||
lib.mapAttrs'
|
||||
(name: lib.nameValuePair ("named-" + name))
|
||||
(modulesFromDir ./named);
|
||||
in
|
||||
lib.mergeAttrsList [
|
||||
{commonModules.imports = lib.attrValues common;}
|
||||
common
|
||||
extra
|
||||
named
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue