mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-10 23:50:19 +02:00
Compare commits
No commits in common. "65618310b36622342d94ddea325df83cd057fab9" and "63011dfd29442bcab58fc8d49c55203f7deab455" have entirely different histories.
65618310b3
...
63011dfd29
17 changed files with 72 additions and 140 deletions
|
@ -78,6 +78,7 @@
|
|||
"/srv/Minecraft"
|
||||
];
|
||||
postgresql_databases = [
|
||||
{ name = "forgejo"; }
|
||||
{ name = "nextcloud"; }
|
||||
{ name = "matrix-synapse"; }
|
||||
];
|
||||
|
|
|
@ -4,13 +4,81 @@
|
|||
enable = true;
|
||||
|
||||
virtualHosts = {
|
||||
"http://sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8082
|
||||
'';
|
||||
|
||||
"http://git.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3333
|
||||
'';
|
||||
|
||||
"http://books.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8083
|
||||
'';
|
||||
|
||||
"http://fish.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3030
|
||||
'';
|
||||
|
||||
"http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
|
||||
"http://media.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
|
||||
"http://slskd.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :5030
|
||||
'';
|
||||
|
||||
"http://radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :7878
|
||||
'';
|
||||
|
||||
"http://sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8989
|
||||
'';
|
||||
|
||||
"http://sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8999
|
||||
'';
|
||||
|
||||
"http://prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :9696
|
||||
'';
|
||||
|
||||
"http://grafana.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3000
|
||||
'';
|
||||
|
||||
"http://status.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :4000
|
||||
'';
|
||||
|
||||
"http://transmission.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :9091
|
||||
'';
|
||||
|
||||
"http://uptime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :4000
|
||||
'';
|
||||
|
||||
"http://mc.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8443
|
||||
'';
|
||||
|
||||
"http://katflix.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :5055
|
||||
'';
|
||||
|
||||
"http://bazarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :6767
|
||||
'';
|
||||
|
||||
"http://bazarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :6777
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -55,33 +55,4 @@ in
|
|||
};
|
||||
*/
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
"http://radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :7878
|
||||
'';
|
||||
|
||||
"http://sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8989
|
||||
'';
|
||||
|
||||
"http://sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8999
|
||||
'';
|
||||
|
||||
"http://prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :9696
|
||||
'';
|
||||
|
||||
"http://katflix.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :5055
|
||||
'';
|
||||
|
||||
"http://bazarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :6767
|
||||
'';
|
||||
|
||||
"http://bazarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :6777
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -10,8 +10,4 @@
|
|||
enableKepubify = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://books.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8083
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -21,14 +21,4 @@
|
|||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts = {
|
||||
"http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
|
||||
"http://media.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8096
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -35,9 +35,5 @@ in
|
|||
directories.incomplete = "${cfg.directory}/incomplete";
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://slskd.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :5030
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -39,9 +39,5 @@ in
|
|||
ratio-limit-enabled = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://transmission.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :9091
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
exporters = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
imports = [
|
||||
# ./akkoma.nix
|
||||
./akkoma.nix
|
||||
./homelab-dashboard.nix
|
||||
./nextcloud.nix
|
||||
# ./photoprism.nix
|
||||
|
|
|
@ -40,8 +40,4 @@
|
|||
create="${lib.getExe config.services.forgejo.package} admin user create"
|
||||
$create --admin --email "`cat ${config.sops.secrets.forgejoInitialMail.path}`" --username you --password "`cat ${config.sops.secrets.forgejoInitialPassword.path}`" &>/dev/null || true
|
||||
'';
|
||||
|
||||
services.caddy.virtualHosts."http://git.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3333
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -8,8 +8,4 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://grafana.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :3000
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -38,10 +38,6 @@ in
|
|||
format = "dotenv";
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :8082
|
||||
'';
|
||||
|
||||
services.homepage-dashboard = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.secrets."homepage".path;
|
||||
|
|
|
@ -7,14 +7,4 @@
|
|||
PORT = "4000";
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."http://status.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :4000
|
||||
'';
|
||||
|
||||
services.caddy.virtualHosts."http://uptime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||
reverse_proxy :4000
|
||||
'';
|
||||
|
||||
|
||||
}
|
||||
|
|
21
flake.lock
generated
21
flake.lock
generated
|
@ -61,26 +61,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-darwin": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1730184279,
|
||||
"narHash": "sha256-6OB+WWR6gnaWiqSS28aMJypKeK7Pjc2Wm6L0MtOrTuA=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "b379bd4d872d159e5189053ce9a4adf86d56db4b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nix-secrets": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -184,7 +164,6 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"alejandra": "alejandra",
|
||||
"nix-darwin": "nix-darwin",
|
||||
"nix-secrets": "nix-secrets",
|
||||
"nixos-generators": "nixos-generators",
|
||||
"nixpkgs": "nixpkgs",
|
||||
|
|
14
flake.nix
14
flake.nix
|
@ -17,9 +17,6 @@
|
|||
url = "github:nix-community/nixos-generators";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
nix-darwin.url = "github:LnL7/nix-darwin";
|
||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs =
|
||||
|
@ -28,7 +25,6 @@
|
|||
nixpkgs,
|
||||
sops-nix,
|
||||
nixos-generators,
|
||||
nix-darwin,
|
||||
...
|
||||
}@inputs:
|
||||
let
|
||||
|
@ -121,15 +117,5 @@
|
|||
format = "proxmox";
|
||||
};
|
||||
};
|
||||
|
||||
darwinConfigurations."iMac-de-Eddie" = nix-darwin.lib.darwinSystem {
|
||||
modules = [ ./hosts/dadarwin/configuration.nix
|
||||
|
||||
{system.configurationRevision = self.rev or self.dirtyRev or null;}
|
||||
];
|
||||
};
|
||||
|
||||
# Expose the package set, including overlays, for convenience.
|
||||
darwinPackages = self.darwinConfigurations."iMac-de-Eddie".pkgs;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
# List packages installed in system profile. To search by name, run:
|
||||
# $ nix-env -qaP | grep wget
|
||||
environment.systemPackages =
|
||||
[
|
||||
pkgs.neovim
|
||||
pkgs.kitty
|
||||
pkgs.kittysay
|
||||
];
|
||||
|
||||
programs.direnv.enable = true;
|
||||
# Auto upgrade nix package and the daemon service.
|
||||
services.nix-daemon.enable = true;
|
||||
# nix.package = pkgs.nix;
|
||||
|
||||
# Necessary for using flakes on this system.
|
||||
nix.settings.experimental-features = "nix-command flakes";
|
||||
|
||||
# Create /etc/zshrc that loads the nix-darwin environment.
|
||||
programs.zsh.enable = true; # default shell on catalina
|
||||
# programs.fish.enable = true;
|
||||
|
||||
# Used for backwards compatibility, please read the changelog before changing.
|
||||
# $ darwin-rebuild changelog
|
||||
system.stateVersion = 5;
|
||||
|
||||
# The platform the configuration will be used on.
|
||||
nixpkgs.hostPlatform = "x86_64-darwin";
|
||||
}
|
|
@ -32,7 +32,7 @@
|
|||
};
|
||||
|
||||
fileSystems."/srv/media" = {
|
||||
device = "/dev/disk/by-uuid/bc4cf2f6-23ca-4d37-87d3-1b30148ab24b";
|
||||
device = "/dev/sdb1";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue