Files
nixos-dogma/hosts/dogma-nixos/mounts.nix
T

68 lines
1.6 KiB
Nix

{config, ...}: {
fileSystems = {
"/mnt/games" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs";
options = [
"users"
"compress=zstd"
"subvol=@games"
"nofail"
];
};
"/mnt/photo" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs";
options = [
"users"
"compress=zstd"
"subvol=@Pictures"
"nofail"
];
};
"/mnt/media" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs";
options = [
"users"
"compress=zstd"
"subvol=@media"
"nofail"
];
};
"/mnt/winbackup" = {
device = "/dev/disk/by-uuid/969eb1a0-fb99-46d1-96cf-57a8644ee2d1";
fsType = "btrfs";
options = [
"users"
"compress=zstd"
"subvol=@winbackup"
"nofail"
];
};
# "/mnt/dogma-rtx-public" = {
# device = "//192.168.0.93/Users/Public";
# fsType = "cifs";
# options = let
# # Prevent system hangs if the network drops or the NAS is offline
# automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
# in ["${automount_opts},credentials=${config.sops.templates."cifs-credentials".path},uid=1000,gid=100" "nofail"];
# };
"/mnt/winhdd" = {
device = "/dev/sdb1";
fsType = "ntfs";
options = [
"users"
"windows_names"
"noatime"
"nofail"
];
};
};
}