nixos/desktop/stp-elc-udmshare.nix
2026-02-16 21:01:13 +00:00

27 lines
508 B
Nix
Executable file

{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.cifs-utils ];
systemd.tmpfiles.rules = [
"d /mnt/udmshare 0755 root root - -"
];
fileSystems."/mnt/udmshare" = {
device = "//10.42.1.254/udmshare";
fsType = "cifs";
options = [
"username=smbuser"
"password=Monaco55"
"vers=3.0"
"iocharset=utf8"
"_netdev"
"nofail"
"x-systemd.automount"
"uid=1000"
"gid=1000"
"file_mode=0664"
"dir_mode=0775"
];
};
}