2025-02-16 15:14:46 -08:00
|
|
|
{ smb, sys, pkgs, ... }: {
|
2025-02-16 00:13:27 -08:00
|
|
|
|
|
|
|
sops.secrets."smb" = {
|
2025-02-16 15:21:24 -08:00
|
|
|
sopsFile = smb.secretsFile;
|
2025-02-16 00:13:27 -08:00
|
|
|
format = "binary";
|
|
|
|
key = "";
|
|
|
|
mode = "0440";
|
2025-02-16 15:14:46 -08:00
|
|
|
owner = sys.username;
|
2025-02-16 00:13:27 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ cifs-utils ];
|
2025-02-16 15:14:46 -08:00
|
|
|
fileSystems."movies" = {
|
|
|
|
mountPoint = "/mnt/movies";
|
|
|
|
device = "//192.168.1.12/Movies";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."music" = {
|
|
|
|
mountPoint = "/mnt/music";
|
|
|
|
device = "//192.168.1.12/Music";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."shows" = {
|
|
|
|
mountPoint = "/mnt/shows";
|
|
|
|
device = "//192.168.1.12/Shows";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."av" = {
|
|
|
|
mountPoint = "/mnt/av";
|
|
|
|
device = "//192.168.1.12/AV";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."printing" = {
|
|
|
|
mountPoint = "/mnt/3dprinting";
|
|
|
|
device = "//192.168.1.12/3DPrinting";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."books" = {
|
|
|
|
mountPoint = "/mnt/books";
|
|
|
|
device = "//192.168.1.12/Text";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."torrenting" = {
|
|
|
|
mountPoint = "/mnt/torrenting";
|
|
|
|
device = "//192.168.1.12/Torrenting";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
|
|
|
fileSystems."archive" = {
|
|
|
|
mountPoint = "/mnt/archive";
|
|
|
|
device = "//192.168.1.12/Archive";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
2025-02-16 00:13:27 -08:00
|
|
|
};
|
2025-02-26 14:46:27 -08:00
|
|
|
fileSystems."recordings" = {
|
|
|
|
mountPoint = "/mnt/recordings";
|
|
|
|
device = "//192.168.1.12/Recordings";
|
|
|
|
fsType = "cifs";
|
|
|
|
options = [ smb.permissions_opts smb.automount_opts ];
|
|
|
|
};
|
2025-02-16 00:13:27 -08:00
|
|
|
}
|