Added permisisons

This commit is contained in:
Alejandro Angulo 2023-08-24 17:28:10 -07:00
parent 9b7969f225
commit be26625700
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -35,13 +35,23 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.syncoid = { services.syncoid = {
enable = true; enable = true;
localSourceAllow =
options.services.syncoid.localSourceAllow.default
++ [
"mount"
];
localTargetAllow =
options.services.syncoid.localTargetAllow.default
++ [
"destroy"
];
commands = mkAliasDefinitions options.aa.services.syncoid.commands; commands = mkAliasDefinitions options.aa.services.syncoid.commands;
}; };
environment.systemPackages = mkIf (cfg.remoteTargetUser != "") [ environment.systemPackages = mkIf (cfg.remoteTargetUser != "") (with pkgs; [
pkgs.lzop lzop
pkgs.mbuffer mbuffer
]; ]);
users = mkIf (cfg.remoteTargetUser != "") { users = mkIf (cfg.remoteTargetUser != "") {
users."${cfg.remoteTargetUser}" = { users."${cfg.remoteTargetUser}" = {