mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 22:50:19 +02:00
huge refactoring
This commit is contained in:
parent
fffcee128e
commit
7a2fba99cd
30 changed files with 246 additions and 201 deletions
|
@ -11,23 +11,14 @@ let
|
|||
in
|
||||
{
|
||||
imports = [
|
||||
./features/arr-suite.nix
|
||||
# ./features/authentik.nix
|
||||
./features/caddy.nix
|
||||
./features/calibre-web.nix
|
||||
./features/containers/default.nix
|
||||
# ./features/freshrss.nix using the docker container instead
|
||||
./features/grafana.nix
|
||||
./features/homelab-dashboard.nix
|
||||
# ./features/nextcloud.nix
|
||||
# ./features/photoprism.nix
|
||||
./features/multimedia/default.nix
|
||||
./features/databases/default.nix
|
||||
./features/services/default.nix
|
||||
./features/backups.nix
|
||||
./features/caddy.nix
|
||||
./features/prometheus.nix
|
||||
./features/samba-shares.nix
|
||||
# ./features/searx.nix
|
||||
./features/synapse-matrix.nix
|
||||
./features/slskd.nix
|
||||
./features/transmission.nix
|
||||
./features/uptime-kuma.nix
|
||||
];
|
||||
|
||||
# setting up networking!!
|
||||
|
@ -52,15 +43,9 @@ in
|
|||
enable = true;
|
||||
allowedTCPPorts = [
|
||||
22 # ssh
|
||||
3000 # grafana
|
||||
4001 # uptime-kuma
|
||||
5030 # slskd
|
||||
8080 # searxng
|
||||
8008 # matrix-synapse
|
||||
8448 # matrix-synapse
|
||||
5050 # calibre-web
|
||||
8400 # crafty-controller
|
||||
9000 # authentik
|
||||
9091 # transmission
|
||||
];
|
||||
allowedUDPPorts = [ ];
|
||||
|
@ -92,6 +77,7 @@ in
|
|||
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
|
||||
sops.age.generateKey = true;
|
||||
sops.defaultSopsFile = ./secrets/secrets.yaml;
|
||||
|
||||
# define your secrets with
|
||||
# `nix-shell -p sops --run "sops ./secrets/yoursecret.env"`
|
||||
|
@ -115,6 +101,7 @@ in
|
|||
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.allowReboot = true;
|
||||
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
@ -129,7 +116,7 @@ in
|
|||
networkd-dispatcher = {
|
||||
enable = true;
|
||||
rules."50-tailscale" = {
|
||||
onState = ["routable"];
|
||||
onState = [ "routable" ];
|
||||
script = ''
|
||||
${pkgs.ethtool}/bin/ethtool -K ens18 rx-udp-gro-forwarding on rx-gro-list off
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue