mauville: added samba shares

This commit is contained in:
Aly Raffauf 2024-03-15 18:43:24 -04:00
parent 324aacafda
commit 7bc9fa44de
3 changed files with 43 additions and 6 deletions

View file

@ -23,15 +23,15 @@
fsType = "vfat";
};
fileSystems."/mnt/Media" =
fileSystems."/mnt/Archive" =
{ device = "/dev/disk/by-uuid/f7e9e6d6-2bf6-429a-aaf0-49b55d53fc83";
fsType = "ext4";
};
# fileSystems."/mnt/Media" =
# { device = "/dev/disk/by-uuid/d988d5ca-f9d6-4d85-aa0e-8a437b3c859a";
# fsType = "ext4";
# };
fileSystems."/mnt/Media" =
{ device = "/dev/disk/by-uuid/d988d5ca-f9d6-4d85-aa0e-8a437b3c859a";
fsType = "ext4";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/26094ada-7ba4-4437-bacb-b3cdf6c3397b"; }

View file

@ -4,6 +4,7 @@
imports = [
./virtualization.nix
./nginx_proxy.nix
./samba.nix
];
# services.ddclient.enable = true;

36
modules/homelab/samba.nix Normal file
View file

@ -0,0 +1,36 @@
{ config, pkgs, ... }:
{
services.samba = {
enable = true;
securityType = "user";
openFirewall = true;
shares = {
Media = {
comment = "Media @Mauville";
path = "/mnt/Media";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0755";
"directory mask" = "0755";
};
Archive = {
comment = "Archive @Mauville";
path = "/mnt/Media";
browseable = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0755";
"directory mask" = "0755";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
}