mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-03 11:00:07 +01:00
buskerud: Temporarily added ozai and ozai-webui
This commit is contained in:
parent
71479d5ca0
commit
46159eec9a
15
flake.nix
15
flake.nix
@ -27,9 +27,15 @@
|
||||
grzegorz.inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||
grzegorz-clients.url = "github:Programvareverkstedet/grzegorz-clients";
|
||||
grzegorz-clients.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
ozai.url = "git+https://git.pvv.ntnu.no/Projects/ozai.git";
|
||||
ozai.inputs.nixpkgs.follows = "nixpkgs";
|
||||
ozai-webui.url = "git+https://git.pvv.ntnu.no/adriangl/ozai-webui.git";
|
||||
ozai-webui.inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, pvv-nettsiden, sops-nix, disko, ... }@inputs:
|
||||
outputs = { self, nixpkgs, nixpkgs-unstable, pvv-nettsiden, sops-nix, disko, ozai, ozai-webui, ... }@inputs:
|
||||
let
|
||||
nixlib = nixpkgs.lib;
|
||||
systems = [
|
||||
@ -121,7 +127,12 @@
|
||||
inputs.grzegorz-clients.nixosModules.grzegorz-webui
|
||||
];
|
||||
};
|
||||
buskerud = stableNixosConfig "buskerud" { };
|
||||
buskerud = stableNixosConfig "buskerud" {
|
||||
modules = [
|
||||
ozai.nixosModules.ozai
|
||||
ozai-webui.nixosModules.ozai-webui
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
devShells = forAllSystems (system: {
|
||||
|
@ -4,6 +4,8 @@
|
||||
./hardware-configuration.nix
|
||||
../../base.nix
|
||||
../../misc/metrics-exporters.nix
|
||||
|
||||
./services/ozai.nix
|
||||
];
|
||||
|
||||
# buskerud does not support efi?
|
||||
|
33
hosts/buskerud/services/ozai.nix
Normal file
33
hosts/buskerud/services/ozai.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
domain = "buskerud.pvv.ntnu.no";
|
||||
in
|
||||
{
|
||||
|
||||
services.ozai = {
|
||||
enable = true;
|
||||
host = "0.0.0.0";
|
||||
port = 8000;
|
||||
};
|
||||
|
||||
services.ozai-webui = {
|
||||
enable = true;
|
||||
port = 8080;
|
||||
host = "0.0.0.0";
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."${domain}" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/azul/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://${config.services.ozai-webui.host}:${config.services.ozai-webui.port}";
|
||||
};
|
||||
locations."/ozai/" = {
|
||||
proxyWebsockets = true;
|
||||
proxyPass = "http://${config.services.ozai.host}:${config.services.ozai.port}";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user