flake: Initialise new repository
This commit is contained in:
commit
1eb25ada72
41 changed files with 1657 additions and 0 deletions
34
modules/nixos/samba.nix
Normal file
34
modules/nixos/samba.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
services.samba = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
global = {
|
||||
"vfs objects" = "catia fruit streams_xattr";
|
||||
"guest account" = "jan";
|
||||
"fruit:model" = "MacPro7,1@ECOLOR=226,226,224";
|
||||
};
|
||||
|
||||
Media = {
|
||||
path = "/mnt/sdb1/media";
|
||||
writeable = "yes";
|
||||
};
|
||||
|
||||
TimeMachine = {
|
||||
path = "/mnt/sdb1/timemachine";
|
||||
writeable = "yes";
|
||||
"fruit:time machine" = "yes";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
## Used to advertise the shares to Windows hosts
|
||||
services.samba-wsdd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns4 = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue