Files
nixos/hosts/vm-jellyfin/default.nix
T

48 lines
935 B
Nix
Raw Normal View History

2024-11-25 13:57:47 -06:00
{ lib, ... }:
2024-11-21 23:13:21 -06:00
{
2024-11-23 01:23:26 -06:00
boot.loader.grub.devices = [ "/dev/disk/by-label/ESP" ];
2024-11-21 23:13:21 -06:00
greg = {
proxies."jellyfin.home".target = "http://localhost:8096/";
tailscale.enable = true;
};
fileSystems = {
2024-11-23 01:23:26 -06:00
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
2024-11-21 23:13:21 -06:00
"/music" = {
device = "10.42.1.4:/volume1/music";
fsType = "nfs";
options = [ "ro" ];
};
"/photo" = {
device = "10.42.1.4:/volume1/photo";
fsType = "nfs";
options = [ "ro" ];
};
"/video" = {
device = "10.42.1.4:/volume1/video/";
fsType = "nfs";
options = [ "ro" ];
};
};
networking = {
hostName = "vm-jellyfin";
2024-11-25 13:57:47 -06:00
domain = lib.mkForce null; # The proxmox generator fails at this, somehow
2024-11-21 23:13:21 -06:00
};
2024-11-25 13:57:47 -06:00
services = {
jellyfin = {
enable = true;
openFirewall = true;
};
qemuGuest.enable = true;
2024-11-21 23:13:21 -06:00
};
2024-11-25 13:57:47 -06:00
virtualisation.diskSize = 20 * 1024;
2024-11-21 23:13:21 -06:00
}