21 lines
440 B
Nix
21 lines
440 B
Nix
{ lib, ... }:
|
|
let
|
|
toModulePath = dir: _: ./. + "/${dir}";
|
|
filterDirs = dirs: lib.attrsets.filterAttrs (_: type: type == "directory") dirs;
|
|
in
|
|
{
|
|
imports = lib.mapAttrsToList toModulePath (filterDirs (builtins.readDir ./.));
|
|
|
|
config = {
|
|
mod = {
|
|
gc.configurationLimit = 10;
|
|
|
|
ssh.enable = true;
|
|
git.enable = true;
|
|
nginx.enable = true;
|
|
syncthing.enable = true;
|
|
restic.enable = true;
|
|
};
|
|
};
|
|
}
|