1
0
Fork 0
dotfiles/system/nixos/mediaserver-setup.nix
2023-04-15 20:04:09 +02:00

38 lines
645 B
Nix

{ pkgs, ... }:
{
users.groups.media_group = {
gid = 2001;
};
users.users.media_user = {
uid = 1001;
isSystemUser = true;
description = "Media User";
group = "media_group";
};
environment.systemPackages = [ pkgs.nfs-utils ];
services.rpcbind.enable = true;
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";
}
];
};
}