nix-config/modules/nixos/samba.nix
Jan Kremer 892d87612a
flake.lock: Update
Update samba config
Flake lock file updates:

• Updated input 'copyparty':
    'github:9001/copyparty/ab8bd0178b26a0b6c6406f7bae835d13b16ef188?narHash=sha256-B1j0ahVuxyZtpbFfy34gk2DjacimPIuzyzCPvDhvxI4%3D' (2026-02-23)
  → 'github:9001/copyparty/8a9066c35cd94226ee0e99d5d36e8b630ed8d2a3?narHash=sha256-QDBoepUZNQaIEvOqCGku6XjUp2sSh%2B7xamA8vNe9HlQ%3D' (2026-03-11)
• Updated input 'darwin':
    'github:LnL7/nix-darwin/6a7fdcd5839ec8b135821179eea3b58092171bcf?narHash=sha256-9SeTZ4Pwr730YfT7V8Azb8GFbwk1ZwiQDAwft3qAD%2Bo%3D' (2026-02-19)
  → 'github:LnL7/nix-darwin/da529ac9e46f25ed5616fd634079a5f3c579135f?narHash=sha256-zm3ftUQw0MPumYi91HovoGhgyZBlM4o3Zy0LhPNwzXE%3D' (2026-03-08)
• Updated input 'home-manager':
    'github:nix-community/home-manager/9a4b494b1aa1b93d8edf167f46dc8e0c0011280c?narHash=sha256-gFgE6mGUftwseV3DUENMb0k0EiHd739lZexPo5O/sdQ%3D' (2026-02-23)
  → 'github:nix-community/home-manager/3f98e2bbc661ec0aaf558d8a283d6955f05f1d09?narHash=sha256-EdW2bwzlfme0vbMOcStnNmKlOAA05Bp6su2O8VLGT0k%3D' (2026-03-10)
• Removed input 'nixos-hardware'
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/0182a361324364ae3f436a63005877674cf45efb?narHash=sha256-0NBlEBKkN3lufyvFegY4TYv5mCNHbi5OmBDrzihbBMQ%3D' (2026-02-17)
  → 'github:NixOS/nixpkgs/9dcb002ca1690658be4a04645215baea8b95f31d?narHash=sha256-9jVDGZnvCckTGdYT53d/EfznygLskyLQXYwJLKMPsZs%3D' (2026-03-08)
2026-03-11 13:55:18 +01:00

45 lines
904 B
Nix

{
services.samba = {
enable = true;
settings = {
global = {
"vfs objects" = "catia fruit streams_xattr";
"fruit:model" = "MacPro7,1@ECOLOR=226,226,224";
"force user" = "jan";
};
Cloud = {
path = "/mnt/cloud";
writeable = "yes";
"valid users" = "jan";
};
Media = {
path = "/mnt/media";
writeable = "yes";
"valid users" = "jan";
};
TimeMachine = {
path = "/mnt/timemachine";
writeable = "yes";
"fruit:time machine" = "yes";
"fruit:time machine max size" = "1000G";
"valid users" = "jan";
};
};
};
## Used to advertise the shares to Windows hosts
services.samba-wsdd.enable = true;
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
userServices = true;
};
};
}