Setting up Hetzner storage box
This commit is contained in:
parent
1aa8e788c7
commit
643d415f23
|
@ -23,6 +23,14 @@
|
|||
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 =
|
||||
[ { device = "/dev/disk/by-label/swap"; }
|
||||
];
|
||||
|
|
|
@ -25,9 +25,8 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cifs-utils # To mount Storage Box
|
||||
git
|
||||
vim
|
||||
];
|
||||
|
||||
services.davfs2.enable = true; # Used for mounting Hetzner Storage Box
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue