43 lines
870 B
Nix
43 lines
870 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
fileSystems."/mnt/volume-hel1-2" = {
|
|
device = "/dev/disk/by-id/scsi-0HC_Volume_103422022";
|
|
fsType = "ext4";
|
|
options = [
|
|
"defaults"
|
|
"discard"
|
|
"nofail"
|
|
];
|
|
};
|
|
|
|
fileSystems."/mnt/volume-hel1-1" = {
|
|
device = "/dev/disk/by-id/scsi-0HC_Volume_103419450";
|
|
fsType = "ext4";
|
|
options = [
|
|
"defaults"
|
|
"discard"
|
|
"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"
|
|
];
|
|
};
|
|
}
|