nixos-config/nixos/machines/orbi/media-share.nix
2024-04-17 10:00:17 +02:00

21 lines
383 B
Nix

{ config, ... }:
{
users.groups."media".gid = config.ids.gids.transmission;
users.users."media" = {
uid = config.ids.uids.transmission;
useDefaultShell = true;
home = "/home/media";
createHome = true;
group = "media";
};
services.permown."/media" = {
owner = "media";
group = "media";
directory-mode = "770";
file-mode = "770";
};
}