Tailscale services can now be declared in Nix, which also eliminates my need for containers completely. Jellyfin hardware encoding can now also be implemented using the Nix module. Hardware support now implemented with nixos-hardware.
23 lines
470 B
Nix
23 lines
470 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.samba = {
|
|
enable = true;
|
|
package = pkgs.samba4Full;
|
|
usershares.enable = true;
|
|
|
|
settings = {
|
|
global = {
|
|
"vfs objects" = "catia fruit streams_xattr";
|
|
# "fruit:model" = "MacPro7,1@ECOLOR=226,226,224";
|
|
};
|
|
|
|
TimeMachine = {
|
|
path = "/mnt/sdb1/timemachine";
|
|
writeable = "yes";
|
|
"fruit:time machine" = "yes";
|
|
};
|
|
};
|
|
};
|
|
|
|
users.users.jan.extraGroups = [ "samba" ];
|
|
}
|