mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 07:00:21 +02:00
(feat): reformatted code for flakes usage
This commit is contained in:
parent
d29d6f0133
commit
c3956d6fa4
40 changed files with 130 additions and 76 deletions
|
@ -1,41 +0,0 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts.":5050".extraConfig = ''
|
||||
reverse_proxy :8083
|
||||
'';
|
||||
/*
|
||||
virtualHosts."sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8003
|
||||
'';
|
||||
*/
|
||||
|
||||
virtualHosts."git.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3333
|
||||
'';
|
||||
|
||||
virtualHosts."photos.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :2342
|
||||
'';
|
||||
|
||||
virtualHosts."books.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8083
|
||||
'';
|
||||
|
||||
virtualHosts."fish.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3030
|
||||
'';
|
||||
|
||||
virtualHosts.":2344".extraConfig = ''
|
||||
reverse_proxy :2342
|
||||
'';
|
||||
/*
|
||||
virtualHosts."jellyfin.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
*/
|
||||
};
|
||||
|
||||
}
|
0
features/client/backups.nix
Normal file
0
features/client/backups.nix
Normal file
69
features/server/caddy.nix
Normal file
69
features/server/caddy.nix
Normal file
|
@ -0,0 +1,69 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
||||
virtualHosts = {
|
||||
":5050".extraConfig = ''
|
||||
reverse_proxy :8083
|
||||
'';
|
||||
|
||||
"sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8003
|
||||
'';
|
||||
|
||||
"git.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3333
|
||||
'';
|
||||
|
||||
"photos.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :2342
|
||||
'';
|
||||
|
||||
"books.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8083
|
||||
'';
|
||||
|
||||
"fish.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3030
|
||||
'';
|
||||
|
||||
":2344".extraConfig = ''
|
||||
reverse_proxy :2342
|
||||
'';
|
||||
|
||||
"jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
|
||||
"slskd.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :5030
|
||||
'';
|
||||
|
||||
"radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :7878
|
||||
'';
|
||||
|
||||
"sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8989
|
||||
'';
|
||||
|
||||
"sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8999
|
||||
'';
|
||||
|
||||
"prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :9696
|
||||
'';
|
||||
|
||||
"grafana.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3000
|
||||
'';
|
||||
|
||||
"status.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :4000
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
|
@ -4,7 +4,7 @@
|
|||
imports = [
|
||||
./crafty-controller.nix
|
||||
./flaresolverr.nix
|
||||
# ./freshrss.nix
|
||||
./freshrss.nix
|
||||
./sonarr.nix
|
||||
#./pihole-exporter.nix
|
||||
];
|
|
@ -14,7 +14,7 @@ in
|
|||
config = {
|
||||
|
||||
sops.secrets.slskd = {
|
||||
sopsFile = ../../secrets/slskd.env;
|
||||
sopsFile = ../../../secrets/slskd.env;
|
||||
format = "dotenv";
|
||||
};
|
||||
|
|
@ -16,7 +16,7 @@ in
|
|||
|
||||
config = {
|
||||
sops.secrets.transmission = {
|
||||
sopsFile = ../../secrets/transmission.json;
|
||||
sopsFile = ../../../secrets/transmission.json;
|
||||
path = "/var/lib/secrets/transmission/settings.json";
|
||||
};
|
||||
|
5
features/server/services/forgejo-smtp.nix
Normal file
5
features/server/services/forgejo-smtp.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
U2FsdGVkX18oY3efQYeXqacnpNaOkre/hn/Ck1shbtZiKPQbD7G+tdQBjxPdZxIL
|
||||
7oZi2qay/Z6ZKgjmd5zMW+jFejxl9/PSbDFbydn3nADkOCgPO5QSjN2QX+cswV/T
|
||||
MlSQovYhJzhBgy37cPNU4oZBM8u5ZyRKLgBdUcbaKOJShyzirwKaKdn4abN0QC9B
|
||||
nPIRIY5INzJPDHJEi/hgOfp4PLeiJTOvrGjvKF2N65f4Uyi8BOW3NSDK+qp6VcUI
|
||||
tfF/C6r6XQF4w3p9GD2Zxw==
|
7
features/server/services/i2p.nix
Normal file
7
features/server/services/i2p.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.i2pd = {
|
||||
enable = true;
|
||||
upnp.enable = true;
|
||||
};
|
||||
}
|
7
features/server/tailscale.nix
Normal file
7
features/server/tailscale.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
};
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
U2FsdGVkX18/ZUWWb+ppxHPa/5EQsIQuaikkDlQyP/HTNbfhQqc0DOinQ7HF0Bov
|
||||
yfoiw4mfPZGbGJKUyV+KVYMz8xDryYV+VkelwjbQNP2+43ffAAqO6+Yq23i5T6fY
|
||||
83H8RFjcZMqyKhR8UXI1MSRfT3c2aT9Aqo+ogmn1MmeXRqY9m1Y4FVo7PohHocNX
|
||||
Gm48e2RIrQ+vGgHeRJ+1Kzan4wRfNDFKZPSu6H8jffdi2DFtBABGl+a+cqKyeclO
|
||||
7yMCgv1n6tam8sgFS/6YMw==
|
0
features/shared/nvim.nix
Normal file
0
features/shared/nvim.nix
Normal file
Loading…
Add table
Add a link
Reference in a new issue