nixos-config/machines/orbi/media-share.nix

22 lines
383 B
Nix
Raw Normal View History

2023-12-09 17:15:50 +01:00
{ 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";
};
2024-04-17 10:00:17 +02:00
services.permown."/media" = {
2023-12-09 17:15:50 +01:00
owner = "media";
group = "media";
directory-mode = "770";
file-mode = "770";
};
}