add syncthing and keepass
This commit is contained in:
parent
bb9494227f
commit
4a800d9290
14 changed files with 183 additions and 80 deletions
|
|
@ -34,16 +34,16 @@
|
|||
(helperLib.filesIn ./bundles);
|
||||
|
||||
# taking all module services in ./services and adding service.enables to them
|
||||
# services =
|
||||
# helperLib.extendModules
|
||||
# (name: {
|
||||
# extraOptions = {
|
||||
# myNixOS.services.${name}.enable = lib.mkEnableOption "enable ${name} module service";
|
||||
# };
|
||||
#
|
||||
# configExtension = config: (lib.mkIf cfg.services.${name}.enable config);
|
||||
# })
|
||||
# (helperLib.filesIn ./services);
|
||||
services =
|
||||
helperLib.extendModules
|
||||
(name: {
|
||||
extraOptions = {
|
||||
myNixOS.services.${name}.enable = lib.mkEnableOption "enable ${name} module service";
|
||||
};
|
||||
|
||||
configExtension = config: (lib.mkIf cfg.services.${name}.enable config);
|
||||
})
|
||||
(helperLib.filesIn ./services);
|
||||
in {
|
||||
imports =
|
||||
[
|
||||
|
|
@ -51,7 +51,7 @@ in {
|
|||
]
|
||||
++ features
|
||||
++ bundles
|
||||
# ++ services
|
||||
++ services
|
||||
;
|
||||
|
||||
options.myNixOS = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue