minidlna disabled

This commit is contained in:
Danilo Reyes 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,10 @@
{ ... }: { { ... }:
imports = [ ./hardware-configuration.nix ../../base.nix ./temp-nginx.nix ]; {
imports = [
./hardware-configuration.nix
../../base.nix
./temp-nginx.nix
];
my = { my = {
emacs.enable = true; emacs.enable = true;
apps.dictionaries.enable = true; apps.dictionaries.enable = true;
@ -73,27 +78,31 @@
allowedUDPPorts = [ 2049 ]; allowedUDPPorts = [ 2049 ];
}; };
}; };
nix = let nix =
featuresList = [ let
"nixos-test" featuresList = [
"benchmark" "nixos-test"
"big-parallel" "benchmark"
"kvm" "big-parallel"
"gccarch-znver3" "kvm"
"gccarch-skylake" "gccarch-znver3"
"gccarch-alderlake" "gccarch-skylake"
]; "gccarch-alderlake"
in { ];
settings.cores = 3; in
buildMachines = [{ {
hostName = "workstation"; settings.cores = 3;
system = "x86_64-linux"; buildMachines = [
sshUser = "nixremote"; {
maxJobs = 14; hostName = "workstation";
speedFactor = 1; system = "x86_64-linux";
supportedFeatures = featuresList; sshUser = "nixremote";
}]; maxJobs = 14;
}; speedFactor = 1;
supportedFeatures = featuresList;
}
];
};
nixpkgs = { nixpkgs = {
config.permittedInsecurePackages = [ "openssl-1.1.1w" ]; config.permittedInsecurePackages = [ "openssl-1.1.1w" ];
hostPlatform = "x86_64-linux"; hostPlatform = "x86_64-linux";
@ -105,8 +114,7 @@
createHome = true; createHome = true;
group = "nixremote"; group = "nixremote";
home = "/var/nixremote/"; home = "/var/nixremote/";
openssh.authorizedKeys.keys = openssh.authorizedKeys.keys = [ (builtins.readFile ../../secrets/ssh/ed25519_nixworkstation.pub) ];
[ (builtins.readFile ../../secrets/ssh/ed25519_nixworkstation.pub) ];
}; };
}; };
services = { services = {
@ -115,7 +123,7 @@
fileSystems = [ "/" ]; fileSystems = [ "/" ];
}; };
minidlna = { minidlna = {
enable = true; enable = false;
openFirewall = true; openFirewall = true;
settings = { settings = {
inotify = "yes"; inotify = "yes";

View File

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