Fix: smb-credentials

This commit is contained in:
2025-06-08 15:45:47 -04:00
parent 27cf08d271
commit bb1ec1cbce
3 changed files with 14 additions and 8 deletions

View File

@@ -24,9 +24,9 @@
fsType = "cifs";
options = let
automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s,user,users";
username = "chase";
password = "$(cat ${config.sops.secrets."smb-password".path})";
in ["${automount_opts},username=${username},password=${password},uid=1000,gid=100"];
credentials = "${config.sops.templates."smb-credentials".path}";
in ["${automount_opts},credentials=${credentials},uid=1000,gid=100"];
#in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=1000,gid=100"];
};
system.stateVersion = "24.11";