Skip to content

Commit

Permalink
Add fafprod3 zfs mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Oct 11, 2023
1 parent 1c6d84d commit c8669b5
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions machines/prod3/hardware-configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,65 @@
fsType = "ext4";
};

fileSystems."/opt/faf" =
{ device = "tank/faf";
fsType = "zfs";
};

fileSystems."/opt/faf/data/faf-db" =
{ device = "tank/faf/mariadb";
fsType = "zfs";
};

fileSystems."/opt/faf/data/legacy-featured-mod-files" =
{ device = "tank/faf/legacy-featured-mod-files";
fsType = "zfs";
};

fileSystems."/opt/faf/data/maps" =
{ device = "tank/faf/maps";
fsType = "zfs";
};

fileSystems."/opt/faf/data/mods" =
{ device = "tank/faf/mods";
fsType = "zfs";
};

fileSystems."/opt/faf/data/phpbb3" =
{ device = "tank/faf/phpbb3";
fsType = "zfs";
};

fileSystems."/opt/faf/data/nodebb" =
{ device = "tank/faf/nodebb";
fsType = "zfs";
};

fileSystems."/opt/faf/data/mongodb" =
{ device = "tank/faf/mongodb";
fsType = "zfs";
};

# SMB Share is called "backup", subfolders can be mounted to use a server for more than one purpose
# https://docs.hetzner.com/robot/storage-box/access/access-samba-cifs
fileSystems."/opt/faf/backups" = {
device = "//u280176.your-storagebox.de/backup";
fsType = "cifs";
options = let
automount_opts = "_netdev,x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,seal,uid=1002,gid=1000";
in ["${automount_opts},credentials=/etc/nixos/secrets/bx10-secrets"];
};

fileSystems."/opt/faf/data/content/replays-old" = {
device = "//u308453.your-storagebox.de/backup/replays";
fsType = "cifs";
options = let
automount_opts = "_netdev,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=20s,seal,uid=1002,gid=1000";
in ["${automount_opts},credentials=/etc/nixos/secrets/bx11-secrets"];
};


swapDevices = [ ];

nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
Expand Down

0 comments on commit c8669b5

Please sign in to comment.