Torjus Håkestad
79b6598d0d
Some checks failed
Run nix flake check / flake-check (push) Failing after 4m36s
33 lines
564 B
Nix
33 lines
564 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.jellyfin = {
|
|
enable = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
nfs-utils
|
|
];
|
|
|
|
services.rpcbind.enable = true;
|
|
systemd.mounts = [
|
|
{
|
|
type = "nfs";
|
|
mountConfig = {
|
|
Options = "ro,soft,noatime";
|
|
};
|
|
what = "nas.home.2rjus.net:/mnt/hdd-pool/media";
|
|
where = "/mnt/nas/media";
|
|
}
|
|
];
|
|
|
|
systemd.automounts = [
|
|
{
|
|
wantedBy = [ "multi-user.target" ];
|
|
automountConfig = {
|
|
TimeoutIdleSec = "5min";
|
|
};
|
|
where = "/mnt/nas/media";
|
|
}
|
|
];
|
|
}
|