mediaserver: nfs
This commit is contained in:
parent
36c71a418c
commit
82f1c9be52
2 changed files with 26 additions and 0 deletions
|
@ -18,6 +18,7 @@ in
|
|||
|
||||
../nixos/tailscale.nix
|
||||
|
||||
../nixos/mediaserver-setup.nix
|
||||
../nixos/wireguard-netns.nix
|
||||
../nixos/prowlarr.nix
|
||||
];
|
||||
|
|
25
system/nixos/mediaserver-setup.nix
Normal file
25
system/nixos/mediaserver-setup.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
users.users.media_user = {
|
||||
uid = 1001;
|
||||
isSystemUser = true;
|
||||
description = "Media User";
|
||||
};
|
||||
|
||||
users.groups.media_group = {
|
||||
gid = 2001;
|
||||
members = [ "media_user" ];
|
||||
};
|
||||
|
||||
services.rpcbind.enable = true;
|
||||
|
||||
systemd.mounts = [
|
||||
{
|
||||
type = "nfs";
|
||||
mountConfig = {
|
||||
Options = "noatime";
|
||||
};
|
||||
what = "10.0.0.100:/mnt/dozer/downloads";
|
||||
where = "/mnt/downloads";
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue