2023-04-15 18:04:09 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
|
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;
|
2023-04-15 17:45:16 +00:00
|
|
|
group = "media_group";
|
2023-04-18 15:01:46 +00:00
|
|
|
isSystemUser = true;
|
2023-04-18 15:00:43 +00:00
|
|
|
description = "Media User";
|
|
|
|
home = "/var/lib/media_user";
|
|
|
|
createHome = true;
|
2023-04-18 15:09:18 +00:00
|
|
|
autoSubUidGidRange = true;
|
2023-04-15 17:43:09 +00:00
|
|
|
};
|
|
|
|
|
2023-04-15 18:12:26 +00:00
|
|
|
boot.supportedFilesystems = [ "nfs" ];
|
2023-04-15 18:04:09 +00:00
|
|
|
environment.systemPackages = [ pkgs.nfs-utils ];
|
2023-04-15 17:43:09 +00:00
|
|
|
services.rpcbind.enable = true;
|
|
|
|
|
2023-04-15 17:51:58 +00:00
|
|
|
systemd = {
|
|
|
|
mounts = [
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-15 17:51:58 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-15 17:51:58 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/downloads";
|
|
|
|
where = "/mnt/downloads";
|
|
|
|
}
|
2023-04-15 21:29:25 +00:00
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-15 21:29:25 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-15 21:29:25 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/media/TV Shows";
|
|
|
|
where = "/mnt/media/TV Shows";
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-15 21:29:25 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-15 21:29:25 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/media/Documentaries";
|
|
|
|
where = "/mnt/media/Documentaries";
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-15 21:29:25 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-15 21:29:25 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/MediaVault/Anime";
|
|
|
|
where = "/mnt/media/Anime";
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-15 21:29:25 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-15 21:29:25 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/media/Movies";
|
|
|
|
where = "/mnt/media/Movies";
|
|
|
|
}
|
2023-04-19 19:30:42 +00:00
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-19 19:30:42 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-19 19:30:42 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/MediaVault/Deutsche Serien";
|
|
|
|
where = "/mnt/media/Deutsche Serien";
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-19 19:30:42 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-19 19:30:42 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/media/Deutsche Filme";
|
|
|
|
where = "/mnt/media/Deutsche Filme";
|
|
|
|
}
|
2023-04-20 10:30:16 +00:00
|
|
|
|
|
|
|
{
|
2023-04-27 21:49:05 +00:00
|
|
|
wantedBy = [ "multi-user.target" ];
|
2023-04-20 10:30:16 +00:00
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
2023-04-23 20:41:00 +00:00
|
|
|
Options = "noatime,nconnect=16";
|
2023-04-20 10:30:16 +00:00
|
|
|
};
|
|
|
|
what = "10.0.0.100:/mnt/dozer/MediaVault/YTDL";
|
|
|
|
where = "/mnt/media/YTDL";
|
|
|
|
}
|
2023-05-05 20:31:17 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
type = "nfs";
|
|
|
|
mountConfig = {
|
|
|
|
Options = "noatime,nconnect=16";
|
|
|
|
};
|
2023-05-06 21:36:41 +00:00
|
|
|
what = "10.0.0.100:/mnt/dozer/JailVault/media-scraper";
|
2023-05-05 20:31:17 +00:00
|
|
|
where = "/mnt/media-scraper";
|
|
|
|
}
|
2023-04-15 17:51:58 +00:00
|
|
|
];
|
|
|
|
};
|
2023-04-15 17:43:09 +00:00
|
|
|
}
|