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