Refactor: ichigo smb config

This commit is contained in:
2025-06-10 23:39:02 -04:00
parent 3c470b9a1b
commit 76c7e69572
3 changed files with 18 additions and 18 deletions

View File

@@ -18,5 +18,16 @@
];
};
# Mount SMB share
fileSystems."/mnt/share" = {
device = "//haruko/share";
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";
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";
}