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