38 lines
695 B
Nix
38 lines
695 B
Nix
_:
|
|
let
|
|
defaultNetworkShareOptions = [
|
|
"sec=none"
|
|
"nofail"
|
|
"x-systemd.automount"
|
|
"auto"
|
|
"rw"
|
|
"file_mode=0775"
|
|
"dir_mode=0775"
|
|
"uid=matt"
|
|
"gid=wheel"
|
|
];
|
|
in
|
|
{
|
|
fileSystems = {
|
|
"/etc".neededForBoot = true;
|
|
# Network shares
|
|
"/media/nas/backup" = {
|
|
device = "//10.0.1.3/Backup";
|
|
fsType = "cifs";
|
|
options = defaultNetworkShareOptions;
|
|
};
|
|
|
|
"/media/nas/isos" = {
|
|
device = "//10.0.1.3/isos";
|
|
fsType = "cifs";
|
|
options = defaultNetworkShareOptions;
|
|
};
|
|
|
|
"/media/nas/3d_printer" = {
|
|
device = "//10.0.1.3/3d_printer";
|
|
fsType = "cifs";
|
|
options = defaultNetworkShareOptions;
|
|
};
|
|
};
|
|
}
|