core(server/networking): now using the cloudflare / google dns

This commit is contained in:
Raphael 2025-11-10 12:58:40 +01:00
parent 5153908d15
commit 6de4d628c6
No known key found for this signature in database
4 changed files with 65 additions and 1 deletions

View file

@ -34,6 +34,13 @@
}; };
}; };
networking.nameservers = [
"1.1.1.1"
"1.0.0.1"
"8.8.8.8"
"8.8.4.4"
];
service = { service = {
selfhost = { selfhost = {
htop = true; htop = true;

View file

@ -23,6 +23,14 @@ let
lib lib
; ;
}; };
jellyfin = import ./self_host/jellyfin.nix {
inherit
inputs
config
pkgs
lib
;
};
mail = import ./self_host/mail.nix { mail = import ./self_host/mail.nix {
inherit inherit
inputs inputs
@ -68,6 +76,7 @@ in
{ {
imports = [ imports = [
git git
jellyfin
htop htop
mail mail
monitor monitor
@ -92,6 +101,11 @@ in
default = false; default = false;
description = "Enable the htop"; description = "Enable the htop";
}; };
jellyfin = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable the jellyfin";
};
mail = lib.mkOption { mail = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;
default = false; default = false;

View file

@ -0,0 +1,43 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.service.selfhost.jellyfin;
in
{
config = lib.mkIf cfg {
services = {
jellyfin =
{
enable = true;
dataDir = "/mnt/data/media";
openFirewall = true;
};
qbittorrent = {
enable = true;
dataDir = "/mnt/data/downloads";
webui.port = 8137;
};
radarr = {
enable = true;
dataDir = "/var/lib/radarr";
user = "radarr";
group = "media";
openFirewall = true;
};
prowlarr = {
enable = true;
dataDir = "/var/lib/prowlarr";
openFirewall = true;
};
bazarr.enable = true;
};
};
}

View file

@ -74,7 +74,7 @@ in
AUTHENTIK_REDIS__PORT = 6380; AUTHENTIK_REDIS__PORT = 6380;
}; };
}; };
redis.servers.authentik.port = lib.mkForce 6380; redis.servers."authentik".port = lib.mkForce 6380;
postgresql = { postgresql = {
enable = true; enable = true;
ensureDatabases = [ ensureDatabases = [