setting up media server
This commit is contained in:
parent
d976ee4c71
commit
891036c7b7
6 changed files with 170 additions and 24 deletions
|
@ -1,9 +1,9 @@
|
|||
{ config, lib, nix-config, inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
imports = with nix-config.nixosModules; [
|
||||
./hardware-configuration.nix
|
||||
sops-config
|
||||
];
|
||||
|
||||
nixpkgs = {
|
||||
|
@ -42,6 +42,7 @@
|
|||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.supportedFilesystems = [ "nfs" ];
|
||||
|
||||
networking.hostName = "media-server"; # Define your hostname.
|
||||
# Pick only one of the below networking options.
|
||||
|
@ -51,6 +52,10 @@
|
|||
# Set your time zone.
|
||||
time.timeZone = "America/Toronto";
|
||||
|
||||
sops-config = {
|
||||
key-file = "/home/media/.config/sops/age/keys.txt";
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.media = {
|
||||
isNormalUser = true;
|
||||
|
@ -147,8 +152,37 @@
|
|||
systemd.services.tailscaled.after = [ "NetworkManager-wait-online.service" ];
|
||||
|
||||
|
||||
nixarr = {
|
||||
enable = true;
|
||||
|
||||
mediaDir = "/data/media";
|
||||
stateDir = "/data/media/.state/nixarr";
|
||||
|
||||
transmission = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
bazarr.enable = true;
|
||||
lidarr.enable = true;
|
||||
prowlarr.enable = true;
|
||||
radarr.enable = true;
|
||||
readarr.enable = true;
|
||||
sonarr.enable = true;
|
||||
jellyseerr.enable = true;
|
||||
};
|
||||
|
||||
services.plex = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/mnt/filez/media" = {
|
||||
device = "server:/filez/Media";
|
||||
fsType = "nfs";
|
||||
};
|
||||
};
|
||||
|
||||
services.nfs.server.enable = true;
|
||||
|
||||
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue