diff --git a/flake.nix b/flake.nix index 468420c..3fb152e 100644 --- a/flake.nix +++ b/flake.nix @@ -9,6 +9,7 @@ }; microvm.url = "github:astro/microvm.nix"; microvm.inputs.nixpkgs.follows = "nixpkgs"; + authentik-nix.url = "github:nix-community/authentik-nix"; }; outputs = inputs@{ self, nixpkgs, home-manager, microvm, ... }: @@ -16,6 +17,7 @@ hostName = "nixmox-perseverance"; system = "x86_64-linux"; username = "tbarnouin"; + proxy_host = "192.168.1.40"; in { nixosConfigurations = { @@ -67,6 +69,7 @@ inherit inputs; inherit username; inherit hostName; + inherit proxy_host; inherit system; }; }; @@ -83,7 +86,7 @@ services.vm = { enable = true; hostname = "nginx"; - vm_ip = "192.168.1.40"; + vm_ip = "${proxy_host}"; macAddr = "02:00:00:00:00:40"; }; }