removed unused syncthing config options
This commit is contained in:
parent
597c25b49d
commit
759390af8d
4 changed files with 7 additions and 66 deletions
|
@ -7,39 +7,6 @@
|
|||
mountDir = "/mnt/sync";
|
||||
configDir = "/etc/syncthing";
|
||||
in {
|
||||
options.host.sync = {
|
||||
enable = lib.mkEnableOption "should sync thing be enabled on this device";
|
||||
folders = {
|
||||
share = {
|
||||
enable = lib.mkEnableOption "should the share folder by synced";
|
||||
calendar = {
|
||||
enable = lib.mkEnableOption "should the calendar folder be synced";
|
||||
};
|
||||
};
|
||||
leyla = {
|
||||
documents = {
|
||||
enable = lib.mkEnableOption "should the documents folder be synced";
|
||||
};
|
||||
notes = {
|
||||
enable = lib.mkEnableOption "should the notes folder by synced";
|
||||
};
|
||||
};
|
||||
extraFolders = lib.mkOption {
|
||||
type = lib.types.attrsOf (lib.types.submodule ({...}: {
|
||||
options = {
|
||||
path = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
devices = lib.mkOption {
|
||||
type = lib.types.listof lib.types.str;
|
||||
};
|
||||
};
|
||||
}));
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
{
|
||||
systemd = lib.mkIf config.services.syncthing.enable {
|
||||
|
@ -50,10 +17,9 @@ in {
|
|||
];
|
||||
};
|
||||
}
|
||||
(lib.mkIf config.host.sync.enable (lib.mkMerge [
|
||||
(lib.mkIf config.services.syncthing.enable (lib.mkMerge [
|
||||
{
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "syncthing";
|
||||
group = "syncthing";
|
||||
dataDir = "${mountDir}/default";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue