mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-11 08:00:18 +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"
|
"/srv/Minecraft"
|
||||||
];
|
];
|
||||||
postgresql_databases = [
|
postgresql_databases = [
|
||||||
|
{ name = "forgejo"; }
|
||||||
{ name = "nextcloud"; }
|
{ name = "nextcloud"; }
|
||||||
{ name = "matrix-synapse"; }
|
{ name = "matrix-synapse"; }
|
||||||
];
|
];
|
||||||
|
|
|
@ -4,13 +4,81 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
virtualHosts = {
|
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 = ''
|
"http://fish.hypervirtual.world".extraConfig = ''
|
||||||
reverse_proxy :3030
|
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 = ''
|
"http://mc.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||||
reverse_proxy :8443
|
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;
|
enableKepubify = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."http://books.hypervirtual.world".extraConfig = ''
|
|
||||||
reverse_proxy :8083
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,14 +21,4 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = 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";
|
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;
|
ratio-limit-enabled = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."http://transmission.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
|
||||||
reverse_proxy :9091
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exporters = {
|
exporters = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# ./akkoma.nix
|
./akkoma.nix
|
||||||
./homelab-dashboard.nix
|
./homelab-dashboard.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
# ./photoprism.nix
|
# ./photoprism.nix
|
||||||
|
|
|
@ -40,8 +40,4 @@
|
||||||
create="${lib.getExe config.services.forgejo.package} admin user create"
|
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
|
$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";
|
format = "dotenv";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.caddy.virtualHosts."http://sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
|
||||||
reverse_proxy :8082
|
|
||||||
'';
|
|
||||||
|
|
||||||
services.homepage-dashboard = {
|
services.homepage-dashboard = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFile = config.sops.secrets."homepage".path;
|
environmentFile = config.sops.secrets."homepage".path;
|
||||||
|
|
|
@ -7,14 +7,4 @@
|
||||||
PORT = "4000";
|
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"
|
"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": {
|
"nix-secrets": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
|
@ -184,7 +164,6 @@
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"alejandra": "alejandra",
|
"alejandra": "alejandra",
|
||||||
"nix-darwin": "nix-darwin",
|
|
||||||
"nix-secrets": "nix-secrets",
|
"nix-secrets": "nix-secrets",
|
||||||
"nixos-generators": "nixos-generators",
|
"nixos-generators": "nixos-generators",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
|
14
flake.nix
14
flake.nix
|
@ -17,9 +17,6 @@
|
||||||
url = "github:nix-community/nixos-generators";
|
url = "github:nix-community/nixos-generators";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix-darwin.url = "github:LnL7/nix-darwin";
|
|
||||||
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -28,7 +25,6 @@
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
sops-nix,
|
sops-nix,
|
||||||
nixos-generators,
|
nixos-generators,
|
||||||
nix-darwin,
|
|
||||||
...
|
...
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
|
@ -121,15 +117,5 @@
|
||||||
format = "proxmox";
|
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" = {
|
fileSystems."/srv/media" = {
|
||||||
device = "/dev/disk/by-uuid/bc4cf2f6-23ca-4d37-87d3-1b30148ab24b";
|
device = "/dev/sdb1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue