diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-25 07:29:21 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-25 08:47:10 -0700 |
| commit | 598f9b7b2bd3ace4561a3d6ff4b5d14b1e6eced4 (patch) | |
| tree | 0da1dbb3359d43003780d15f9f23ae5278235a7d /machines/nixos/x86_64-linux | |
| parent | enable cloudflared on the vm (diff) | |
| download | infra-598f9b7b2bd3ace4561a3d6ff4b5d14b1e6eced4.tar.gz | |
add a module for mounting CIFS volumes
The new module is for NAS clients, where we specify the server and the
paths to mount locally.
We add a new secret to have the username of the `nas' user.
We mount the backups volume from the NAS under `/data/backups` on the
VM.
Diffstat (limited to 'machines/nixos/x86_64-linux')
| -rw-r--r-- | machines/nixos/x86_64-linux/vm-synology.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/vm-synology.nix b/machines/nixos/x86_64-linux/vm-synology.nix index eedf26e..0dfbc14 100644 --- a/machines/nixos/x86_64-linux/vm-synology.nix +++ b/machines/nixos/x86_64-linux/vm-synology.nix @@ -19,6 +19,9 @@ cloudflared-cert = { file = "${self}/secrets/cloudflared_cert.age"; }; + nas_client_credentials = { + file = "${self}/secrets/nas_client.age"; + }; }; }; @@ -56,5 +59,17 @@ }; }; + my.modules.nas-client = { + enable = true; + volumes = { + data = { + server = "192.168.1.68"; + remotePath = "backups"; + mountPoint = "/data/backups"; + uid = adminUser.uid; + }; + }; + }; + system.stateVersion = "23.11"; # Did you read the comment? } |
