Added permisisons
This commit is contained in:
parent
9b7969f225
commit
be26625700
|
@ -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}" = {
|
||||||
|
|
Loading…
Reference in a new issue