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

54 lines
1005 B
Nix

{ lib, ... }:
{
imports = [ ./hardware-configuration.nix ];
# Bootloader.
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
greg = {
home = true;
proxies."jellyfin.home".target = "http://localhost:8096/";
proxies."jellyfin.thehellings.lan".target = "http://localhost:8096/";
tailscale.enable = true;
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
"/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";
};
services = {
jellyfin = {
enable = true;
openFirewall = true;
};
qemuGuest.enable = true;
};
}