From 598f9b7b2bd3ace4561a3d6ff4b5d14b1e6eced4 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 25 Jul 2025 07:29:21 -0700 Subject: 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. --- machines/nixos/x86_64-linux/vm-synology.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'machines/nixos/x86_64-linux') 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? } -- cgit v1.2.3