Setting up Hetzner storage box

This commit is contained in:
Trevor Vallender 2023-09-27 11:14:13 +01:00
parent 1aa8e788c7
commit 643d415f23
2 changed files with 9 additions and 2 deletions

View File

@ -23,6 +23,14 @@
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems."/home/tsv/storagebox" = {
device = "//u369259.your-storagebox.de/backup";
fsType = "cifs";
options = let
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=/home/tsv/.smb-secrets,uid=1001,gid=100"];
};
swapDevices = swapDevices =
[ { device = "/dev/disk/by-label/swap"; } [ { device = "/dev/disk/by-label/swap"; }
]; ];

View File

@ -25,9 +25,8 @@
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
cifs-utils # To mount Storage Box
git git
vim vim
]; ];
services.davfs2.enable = true; # Used for mounting Hetzner Storage Box
} }