Samba and also get rid of tabs

This commit is contained in:
Nathan van Doorn 2024-06-01 11:04:12 +00:00
parent 30f97c74b5
commit 5e34efac9d
1 changed files with 30 additions and 9 deletions

View File

@ -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
]; ];
}; };
}; };