minidlna disabled

This commit is contained in:
2024-09-22 14:41:57 -06:00
parent 2146eb0e51
commit dd00fb4854
2 changed files with 91 additions and 71 deletions

View File

@@ -1,5 +1,9 @@
{ ... }: {
imports = [ ./hardware-configuration.nix ../../base.nix ];
{ ... }:
{
imports = [
./hardware-configuration.nix
../../base.nix
];
my = {
emacs.enable = true;
apps.dictionaries.enable = true;
@@ -35,47 +39,53 @@
};
};
};
networking = let
ports = [
2049 # idk
8989 # sonarr
7878 # radarr
8686 # lidarr
9696 # prowlarr
8096 # jellyfin
6767 # bazarr
5000 # kavita
3399 # sabnzbd
];
in {
hostName = "server";
firewall = {
allowedTCPPorts = ports;
allowedUDPPorts = ports;
networking =
let
ports = [
2049 # idk
8989 # sonarr
7878 # radarr
8686 # lidarr
9696 # prowlarr
8096 # jellyfin
6767 # bazarr
5000 # kavita
3399 # sabnzbd
];
in
{
hostName = "server";
firewall = {
allowedTCPPorts = ports;
allowedUDPPorts = ports;
};
};
};
nixpkgs.hostPlatform = "x86_64-linux";
nix = let
featuresList = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
"gccarch-znver3"
"gccarch-skylake"
"gccarch-alderlake"
];
in {
settings.cores = 6;
buildMachines = [{
hostName = "workstation";
system = "x86_64-linux";
sshUser = "nixremote";
maxJobs = 14;
speedFactor = 1;
supportedFeatures = featuresList;
}];
};
nix =
let
featuresList = [
"nixos-test"
"benchmark"
"big-parallel"
"kvm"
"gccarch-znver3"
"gccarch-skylake"
"gccarch-alderlake"
];
in
{
settings.cores = 6;
buildMachines = [
{
hostName = "workstation";
system = "x86_64-linux";
sshUser = "nixremote";
maxJobs = 14;
speedFactor = 1;
supportedFeatures = featuresList;
}
];
};
users = {
groups.nixremote.gid = 555;
users.nixremote = {
@@ -83,17 +93,19 @@
createHome = true;
group = "nixremote";
home = "/var/nixremote/";
openssh.authorizedKeys.keys =
[ (builtins.readFile ../../secrets/ssh/ed25519_nixworkstation.pub) ];
openssh.authorizedKeys.keys = [ (builtins.readFile ../../secrets/ssh/ed25519_nixworkstation.pub) ];
};
};
services = {
minidlna = {
enable = true;
enable = false;
openFirewall = true;
settings = {
inotify = "yes";
media_dir = [ "/mnt/pool" "/home/jawz" ];
media_dir = [
"/mnt/pool"
"/home/jawz"
];
};
};
btrfs.autoScrub = {