38 lines
754 B
Nix
Executable File
38 lines
754 B
Nix
Executable File
{ lib, namespace, ... }:
|
|
let
|
|
net = lib.${namespace}.network;
|
|
defaultNetworkShareOptions = [
|
|
"sec=none"
|
|
"nofail"
|
|
"x-systemd.automount"
|
|
"auto"
|
|
"rw"
|
|
"file_mode=0775"
|
|
"dir_mode=0775"
|
|
"uid=matt"
|
|
"gid=wheel"
|
|
];
|
|
in
|
|
{
|
|
fileSystems = {
|
|
# Network shares
|
|
"/media/nas/backup" = {
|
|
device = "//${net.hosts.nas.lan}/Backup";
|
|
fsType = "cifs";
|
|
options = defaultNetworkShareOptions;
|
|
};
|
|
|
|
"/media/nas/isos" = {
|
|
device = "//${net.hosts.nas.lan}/isos";
|
|
fsType = "cifs";
|
|
options = defaultNetworkShareOptions;
|
|
};
|
|
|
|
"/media/nas/3d_printer" = {
|
|
device = "//${net.hosts.nas.lan}/3d_printer";
|
|
fsType = "cifs";
|
|
options = defaultNetworkShareOptions;
|
|
};
|
|
};
|
|
}
|