flake/hosts/pek0/services/samba.nix

25 lines
450 B
Nix
Raw Normal View History

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