mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
feat: server test
This commit is contained in:
parent
adb9108555
commit
e643e105a2
1 changed files with 14 additions and 4 deletions
|
@ -1,7 +1,5 @@
|
|||
let
|
||||
modulesPath = ./modules;
|
||||
servicePath = modulesPath + /services;
|
||||
|
||||
moduleImport = path: nameTransform:
|
||||
builtins.listToAttrs (
|
||||
map
|
||||
|
@ -15,10 +13,22 @@ let
|
|||
(builtins.attrNames (builtins.readDir path))
|
||||
)
|
||||
);
|
||||
|
||||
modules =
|
||||
moduleImport modulesPath (name: builtins.replaceStrings [".nix"] [""] name)
|
||||
// moduleImport servicePath (name: builtins.replaceStrings [".nix"] [""] name);
|
||||
// (path:
|
||||
builtins.listToAttrs (
|
||||
map
|
||||
(name: {
|
||||
name = name;
|
||||
value = import (path + "/${name}");
|
||||
})
|
||||
(
|
||||
builtins.filter
|
||||
(name: (builtins.readDir path).${name} == "directory")
|
||||
(builtins.attrNames (builtins.readDir path))
|
||||
)
|
||||
))
|
||||
modulesPath;
|
||||
in {
|
||||
flake.nixosModules = {
|
||||
personal = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue