stp-elc-smbshare.nix

This commit is contained in:
Julian Sutter 2025-12-18 12:00:33 -08:00
parent 36a3663e7f
commit 34a3f7aec6
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,27 @@
{ 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=smbshare"
"password=Monaco55"
"vers=3.0"
"iocharset=utf8"
"_netdev"
"nofail"
"x-systemd.automount"
"uid=1000"
"gid=1000"
"file_mode=0664"
"dir_mode=0775"
];
};
}