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 {
services.syncoid = {
enable = true;
localSourceAllow =
options.services.syncoid.localSourceAllow.default
++ [
"mount"
];
localTargetAllow =
options.services.syncoid.localTargetAllow.default
++ [
"destroy"
];
commands = mkAliasDefinitions options.aa.services.syncoid.commands;
};
environment.systemPackages = mkIf (cfg.remoteTargetUser != "") [
pkgs.lzop
pkgs.mbuffer
];
environment.systemPackages = mkIf (cfg.remoteTargetUser != "") (with pkgs; [
lzop
mbuffer
]);
users = mkIf (cfg.remoteTargetUser != "") {
users."${cfg.remoteTargetUser}" = {