flake/hosts/pek0/services/samba.nix

25 lines
448 B
Nix
Raw Normal View History

2024-08-30 23:51:49 +00:00
{ config, ... }:
2024-08-11 10:08:41 +00:00
{
services.samba = {
enable = true;
openFirewall = true;
2024-08-11 13:26:53 +00:00
shares."external" = {
"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
}