feat(syncthing): adding syncthing host to sobotka

This commit is contained in:
2025-09-06 13:49:24 +02:00
parent a11e4961e1
commit eefa14bd57
5 changed files with 92 additions and 2 deletions

View File

@@ -11,6 +11,20 @@ in
{
options.server = {
enable = lib.mkEnableOption "The server services and configuration variables";
mounts.fast = lib.mkOption {
default = "/mnt/cache";
type = lib.types.path;
description = ''
Path to the 'fast' tier mount
'';
};
mounts.config = lib.mkOption {
default = "/persist/opt/services";
type = lib.types.path;
description = ''
Path to the service configuration files
'';
};
email = mkOption {
default = "";
type = types.str;
@@ -53,7 +67,6 @@ in
GID to run the server services as
'';
};
timeZone = lib.mkOption {
default = "Europe/Stockholm";
type = lib.types.str;
@@ -62,6 +75,7 @@ in
'';
};
};
config = lib.mkIf cfg.enable {
users = {
groups.${cfg.group} = {