Samba and also get rid of tabs
This commit is contained in:
		
							parent
							
								
									30f97c74b5
								
							
						
					
					
						commit
						5e34efac9d
					
				
							
								
								
									
										21
									
								
								flake.nix
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								flake.nix
									
									
									
									
									
								
							@ -52,6 +52,26 @@
 | 
				
			|||||||
      };
 | 
					      };
 | 
				
			||||||
      nixpkgs.config.allowUnfree = true;
 | 
					      nixpkgs.config.allowUnfree = true;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					    nixosModules.samba = {...}: {
 | 
				
			||||||
 | 
					      services.samba = {
 | 
				
			||||||
 | 
					        enable = true;
 | 
				
			||||||
 | 
					        openFirewall = true;
 | 
				
			||||||
 | 
					        shares = {
 | 
				
			||||||
 | 
					          chopper = {
 | 
				
			||||||
 | 
					            path = "/storage/media";
 | 
				
			||||||
 | 
					            browseable = "yes";
 | 
				
			||||||
 | 
					            "read only" = "no";
 | 
				
			||||||
 | 
					            "guest ok" = "no";
 | 
				
			||||||
 | 
					            "inherit permissions" = "yes";
 | 
				
			||||||
 | 
					            "create mask" = "0666";
 | 
				
			||||||
 | 
					          };
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					      services.samba-wsdd = {
 | 
				
			||||||
 | 
					        enable = true;
 | 
				
			||||||
 | 
					        openFirewall = true;
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
    nixosConfigurations.chopper = nixpkgs.lib.nixosSystem {
 | 
					    nixosConfigurations.chopper = nixpkgs.lib.nixosSystem {
 | 
				
			||||||
      system = "aarch64-linux";
 | 
					      system = "aarch64-linux";
 | 
				
			||||||
      modules = [
 | 
					      modules = [
 | 
				
			||||||
@ -61,6 +81,7 @@
 | 
				
			|||||||
        self.nixosModules.ssh
 | 
					        self.nixosModules.ssh
 | 
				
			||||||
        self.nixosModules.zfs
 | 
					        self.nixosModules.zfs
 | 
				
			||||||
        self.nixosModules.plex
 | 
					        self.nixosModules.plex
 | 
				
			||||||
 | 
					        self.nixosModules.samba
 | 
				
			||||||
      ];
 | 
					      ];
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user