Add volume mount
This commit is contained in:
parent
8e42f81a19
commit
116fd3c993
3 changed files with 37 additions and 1 deletions
11
modules/servermodules/arr/arr.nix
Normal file
11
modules/servermodules/arr/arr.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
fileSystems."/mnt/volume-hel1-2" = {
|
||||
device = "/dev/disk/by-id/scsi-0HC_Volume_103422022";
|
||||
fsType = "ext4";
|
||||
options = [
|
||||
"defaults"
|
||||
"discard"
|
||||
"nofail"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{config}: {
|
||||
fileSystems."/mnt/volume-hel1-2" = {
|
||||
device = "/dev/disk/by-id/scsi-0HC_Volume_103422022";
|
||||
fsType = "ext4";
|
||||
|
|
@ -18,4 +18,6 @@
|
|||
"nofail"
|
||||
];
|
||||
};
|
||||
|
||||
inherit (import ../volumebox/mount.nix {keypath=age.secrets.hetzner-key; path="/mnt/sbox"})
|
||||
}
|
||||
|
|
|
|||
23
systems/volumebox/mount.nix
Normal file
23
systems/volumebox/mount.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ path keypath }:
|
||||
{
|
||||
environment.systemPackages = [ pkgs.rclone ];
|
||||
environment.etc."rclone-mnt.conf".text = ''
|
||||
[myremote]
|
||||
type = sftp
|
||||
host = u504615.your-storagebox.de
|
||||
user = u504615
|
||||
key_file = ${keypath}
|
||||
'';
|
||||
|
||||
fileSystems."${path}" = {
|
||||
device = "myremote:/";
|
||||
fsType = "rclone";
|
||||
options = [
|
||||
"nodev"
|
||||
"nofail"
|
||||
"allow_other"
|
||||
"args2env"
|
||||
"config=/etc/rclone-mnt.conf"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue