Added permisisons
This commit is contained in:
		
							parent
							
								
									9b7969f225
								
							
						
					
					
						commit
						be26625700
					
				
					 1 changed files with 14 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue