nixos-config/modules/system/filesystems.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

2025-02-16 16:24:34 -05:00
{ config, lib, pkgs, ... }:
{
fileSystems =
let
automount-opts = "x-systemd.automount,noauto,users,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,uid=1000";
filez-opts = automount-opts + ",credentials=/etc/nixos/filez-secrets";
media-server-opts = automount-opts + ",credentials=/etc/nixos/media-server-secrets";
in {
"/mnt/filez/media" = {
2025-02-20 13:51:36 -05:00
device = "//filez/Media";
2025-02-16 16:24:34 -05:00
fsType = "smb3";
options = [ "${filez-opts}" ];
};
"/mnt/filez/music-production" = {
2025-02-20 13:51:36 -05:00
device = "//filez/Music Production";
2025-02-16 16:24:34 -05:00
fsType = "smb3";
options = [ "${filez-opts}" ];
};
"/mnt/filez/storage" = {
2025-02-20 13:51:36 -05:00
device = "//filez/Storage";
2025-02-16 16:24:34 -05:00
fsType = "smb3";
options = [ "${filez-opts}" ];
};
"/mnt/filez/photos" = {
2025-02-20 13:51:36 -05:00
device = "//filez/Photo Storage";
2025-02-16 16:24:34 -05:00
fsType = "smb3";
options = [ "${filez-opts}" ];
};
2025-02-20 13:51:36 -05:00
# "/mnt/media-server/import" = {
# device = "//media-server/import";
# # fsType = "smb3";
# options = [ "${media-server-opts}" ];
# };
2025-02-16 16:24:34 -05:00
};
}