Add volume mount
This commit is contained in:
parent
8e42f81a19
commit
5e0c257caf
4 changed files with 57 additions and 0 deletions
|
|
@ -33,5 +33,6 @@ nixpkgs.lib.nixosSystem {
|
|||
./users.nix
|
||||
./hardware.nix
|
||||
agenix.nixosModules.default
|
||||
./volumes.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
23
systems/ren/volumes.nix
Normal file
23
systems/ren/volumes.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue