From 507194e35bc331c3209fc9d4ff9eb573529631ae Mon Sep 17 00:00:00 2001 From: Bladesy Date: Thu, 2 Jan 2025 00:38:21 +0000 Subject: [PATCH] fix: remove double quotes from secret sb1-credentials and reformat sb1 mount options --- modules/sv1.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/modules/sv1.nix b/modules/sv1.nix index cdd1c1c..e0d6d50 100644 --- a/modules/sv1.nix +++ b/modules/sv1.nix @@ -104,19 +104,14 @@ device = "//u424050.your-storagebox.de/backup"; fsType = "cifs"; options = [ - ( - "x-systemd.automount,noauto,x-systemd.idle-timeout=60," - + "x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s," - + "credentials=/persist/sb1-credentials" - ) - ]; - /* - options = [ - "noauto" "x-systemd.automount" + "noauto" + "x-systemd" + "idle-timeout=60" + "x-systemd.device-timeout=5s" + "x-systemd.mount-timeout=5s" "credentials=${config.sops.templates.sb1-credentials.path}" ]; - */ }; }; @@ -131,8 +126,8 @@ sb1-password.sopsFile = lib.secrets.sb1; }; templates.sb1-credentials.content = '' - username="${config.sops.placeholder.sb1-username}" - password="${config.sops.placeholder.sb1-password}" + username=${config.sops.placeholder.sb1-username} + password=${config.sops.placeholder.sb1-password} ''; };