flake/hosts/pek0/services/samba.nix

24 lines
450 B
Nix

{ config, ... }:
{
services.samba = {
enable = true;
openFirewall = true;
settings."external" = {
"path" = "/mnt";
"read only" = "no";
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
users.users."guanranwang" = {
uid = 1000;
isNormalUser = true;
createHome = false;
useDefaultShell = false;
hashedPasswordFile = config.sops.secrets."hashed-passwd".path;
};
}