stp-elc-smbshare.nix
This commit is contained in:
parent
36a3663e7f
commit
34a3f7aec6
3 changed files with 30 additions and 0 deletions
27
desktop/stp-elc-smbshare.nix
Normal file
27
desktop/stp-elc-smbshare.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue