yandex-disk service: add exclude-dirs option
This commit is contained in:
parent
5f8aa15e84
commit
ccf8566bdd
1 changed files with 10 additions and 1 deletions
|
@ -55,6 +55,15 @@ in
|
|||
description = "The directory to use for Yandex.Disk storage";
|
||||
};
|
||||
|
||||
excludes = mkOption {
|
||||
default = "";
|
||||
type = types.string;
|
||||
example = "data,backup";
|
||||
description = ''
|
||||
Comma-separated list of directories which are excluded from synchronization.
|
||||
'';
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
@ -94,7 +103,7 @@ in
|
|||
-c '${pkgs.yandex-disk}/bin/yandex-disk token -p ${cfg.password} ${cfg.username} ${dir}/token'
|
||||
|
||||
${pkgs.su}/bin/su -s ${pkgs.stdenv.shell} ${u} \
|
||||
-c '${pkgs.yandex-disk}/bin/yandex-disk start --no-daemon -a ${dir}/token -d ${cfg.directory}'
|
||||
-c '${pkgs.yandex-disk}/bin/yandex-disk start --no-daemon -a ${dir}/token -d ${cfg.directory} --exclude-dirs=${cfg.excludes}'
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue