Add volume mount

This commit is contained in:
Maxiem Geldhof 2025-10-31 18:40:32 +01:00
parent 8e42f81a19
commit 5e0c257caf
4 changed files with 57 additions and 0 deletions

View file

@ -1,3 +1,4 @@
{ config, pkgs, ... }:
{
fileSystems."/mnt/volume-hel1-2" = {
device = "/dev/disk/by-id/scsi-0HC_Volume_103422022";
@ -18,4 +19,25 @@
"nofail"
];
};
environment.systemPackages = [ pkgs.rclone ];
environment.etc."rclone-mnt.conf".text = ''
[myremote]
type = sftp
host = u504615.your-storagebox.de
user = u504615
key_file = ${config.age.secrets.hetzner-key.path}
'';
fileSystems."/mnt/sbox" = {
device = "myremote:/";
fsType = "rclone";
options = [
"nodev"
"nofail"
"allow_other"
"args2env"
"config=/etc/rclone-mnt.conf"
];
};
}