nixos-config/machines/orbi/media-share.nix
Ingolf Wagner 7a6510a4e6
nix fmt
2024-08-29 08:26:04 +07:00

20 lines
382 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";
};
}