2023-04-15 17:43:09 +00:00
|
|
|
{
|
2023-04-15 17:45:16 +00:00
|
|
|
users.groups.media_group = {
|
|
|
|
gid = 2001;
|
|
|
|
};
|
|
|
|
|
2023-04-15 17:43:09 +00:00
|
|
|
users.users.media_user = {
|
|
|
|
uid = 1001;
|
|
|
|
isSystemUser = true;
|
|
|
|
description = "Media User";
|
2023-04-15 17:45:16 +00:00
|
|
|
group = "media_group";
|
2023-04-15 17:43:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services.rpcbind.enable = true;
|
|
|
|
|
2023-04-15 17:51:58 +00:00
|
|
|
systemd = {
|
|
|
|
mounts = [
|
|
|
|
{
|
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
|
|
|
Options = "noatime";
|
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/downloads";
|
|
|
|
where = "/mnt/downloads";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
automounts = [
|
|
|
|
{
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
where = "/mnt/downloads";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-04-15 17:43:09 +00:00
|
|
|
}
|