mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 21:00:32 +01:00
nginx shenanigans
This commit is contained in:
parent
905652dd4a
commit
1b1893b267
|
@ -6,6 +6,9 @@
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
|
#nixpkgs.config.permittedInsecurePackages = ["electron-25.9.0" "electron-24.8.6"];
|
||||||
|
networking.hosts = {
|
||||||
|
"192.168.178.35" = [ "jellyfin.fritz.box" "grafana.fritz.box" ];
|
||||||
|
};
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
../../../common
|
../../../common
|
||||||
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
||||||
../../gc.nix
|
../../gc.nix
|
||||||
|
./jellyfin.nix
|
||||||
|
|
||||||
./monitoring.nix
|
./monitoring.nix
|
||||||
];
|
];
|
||||||
|
@ -124,8 +125,8 @@
|
||||||
|
|
||||||
networking.wireguard.enable = true;
|
networking.wireguard.enable = true;
|
||||||
|
|
||||||
services.jellyfin.enable = true;
|
# services.jellyfin.enable = true;
|
||||||
services.jellyfin.user = "xqtc";
|
# services.jellyfin.user = "xqtc";
|
||||||
|
|
||||||
#services.slskd = {
|
#services.slskd = {
|
||||||
# enable = true;
|
# enable = true;
|
||||||
|
@ -146,6 +147,7 @@
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
# List services that you want to enable:
|
# List services that you want to enable:
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
|
|
14
hosts/x86_64-linux/seraphim/jellyfin.nix
Normal file
14
hosts/x86_64-linux/seraphim/jellyfin.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{config, pkgs, lib, ...}:
|
||||||
|
{
|
||||||
|
services.jellyfin.enable = true;
|
||||||
|
services.jellyfin.user = "xqtc";
|
||||||
|
services.nginx.virtualHosts."jellyfin.fritz.box" = {
|
||||||
|
locations."/" = {
|
||||||
|
extraConfig = ''
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
'';
|
||||||
|
proxyPass = "http://127.0.0.1:8096";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.server = {
|
settings.server = {
|
||||||
|
domain = "grafana.fritz.box";
|
||||||
port = 2342;
|
port = 2342;
|
||||||
addr = "127.0.0.1";
|
addr = "127.0.0.1";
|
||||||
};
|
};
|
||||||
|
@ -34,7 +35,6 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.enable = true;
|
|
||||||
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
|
services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue