2024-08-30 23:51:49 +00:00
|
|
|
{ config, ... }:
|
2024-08-11 10:08:41 +00:00
|
|
|
{
|
|
|
|
services.samba = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-09-16 05:24:22 +00:00
|
|
|
settings."external" = {
|
2024-08-11 13:26:53 +00:00
|
|
|
"path" = "/mnt";
|
|
|
|
"read only" = "no";
|
2024-08-11 10:08:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.samba-wsdd = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
2024-08-30 23:51:49 +00:00
|
|
|
|
|
|
|
users.users."guanranwang" = {
|
|
|
|
uid = 1000;
|
|
|
|
isNormalUser = true;
|
|
|
|
createHome = false;
|
|
|
|
useDefaultShell = false;
|
|
|
|
hashedPasswordFile = config.sops.secrets."hashed-passwd".path;
|
|
|
|
};
|
2024-08-11 10:08:41 +00:00
|
|
|
}
|