diff --git a/flake.nix b/flake.nix index e2ed5c9..2a7ec79 100644 --- a/flake.nix +++ b/flake.nix @@ -59,43 +59,6 @@ inherit system; }; }; - nixmox-perseverance = nixpkgs.lib.nixosSystem { - inherit system; - modules = [ - ./hosts/nixmox-perseverance/configuration.nix - { - networking.hostName = "nixmox-perseverance"; - } - home-manager.nixosModules.home-manager - { - home-manager.useGlobalPkgs = true; - home-manager.useUserPackages = true; - home-manager.users.${username} = import ./hosts/nixmox-perseverance/home.nix; - } - microvm.nixosModules.host - { - microvm = { - autostart = [ - "netbox" - ]; - vms = { - netbox = { - flake = self; - updateFlake = "git+file:///etc/nixos"; - }; - }; - }; - } - ]; - - specialArgs = { - inherit inputs; - inherit username; - inherit proxy_host; - inherit pgsql_host; - inherit system; - }; - }; nginx = nixpkgs.lib.nixosSystem { inherit system; modules = [ @@ -166,6 +129,25 @@ } ]; }; + grafana-lxc = nixpkgs.lib.nixosSystem { + inherit system; + modules = [ + agenix.nixosModules.default + "${inputs.nixpkgs}/nixos/modules/virtualisation/proxmox-lxc.nix" + "${inputs.self}/services" + { + services.vm_grafana = { + enable = true; + vm_ip = "192.168.1.27"; + proxy_ip = proxy_host; + pgsql_ip = pgsql_host; + }; + services.ct = { + enable = true; + }; + } + ]; + }; grafana = nixpkgs.lib.nixosSystem { inherit system; modules = [ diff --git a/services/nginx/default.nix b/services/nginx/default.nix index a55c2eb..d9717f5 100644 --- a/services/nginx/default.nix +++ b/services/nginx/default.nix @@ -87,7 +87,7 @@ in forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://192.168.1.20:3000"; + proxyPass = "http://192.168.1.27:3000"; proxyWebsockets = true; recommendedProxySettings = true; };