add the syncthing service

This commit is contained in:
MFlossmann 2024-05-09 19:41:05 +02:00
parent 25d5980e6c
commit 0a1dcf0a6a
4 changed files with 80 additions and 19 deletions

View file

@ -8,18 +8,18 @@
...
}: let
cfg = config.myHomeManager;
# # Taking all modules in ./features and adding enables to them
# features =
# helperLib.extendModules
# (name: {
# extraOptions = {
# myHomeManager.${name}.enable = lib.mkEnableOption "enable my ${name} configuration";
# };
#
# configExtension = config: (lib.mkIf cfg.${name}.enable config);
# })
# (helperLib.filesIn ./features);
#
# Taking all modules in ./features and adding enables to them
features =
helperLib.extendModules
(name: {
extraOptions = {
myHomeManager.${name}.enable = lib.mkEnableOption "enable my ${name} configuration";
};
configExtension = config: (lib.mkIf cfg.${name}.enable config);
})
(helperLib.filesIn ./features);
# Taking all module bundles in ./bundles and adding bundle.enables to them
bundles =
helperLib.extendModules
@ -35,7 +35,7 @@
in {
imports = [
]
# ++ features
++ features
++ bundles
;