diff --git a/flake.nix b/flake.nix index 81d2b87..0048fca 100644 --- a/flake.nix +++ b/flake.nix @@ -121,6 +121,7 @@ nixosConfigurations.vm = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ + {nixpkgs.overlays = [overlay];} "${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix" ./vm.nix self.nixosModules.e11sync diff --git a/vm.nix b/vm.nix index 34c80df..58ecd53 100644 --- a/vm.nix +++ b/vm.nix @@ -13,6 +13,10 @@ auto_https off debug ''; + virtualHosts."http://:8003".extraConfig = '' + redir / /admin/ + ${builtins.readFile "${pkgs.e11sync-caddyfile}"} + ''; }; environment.systemPackages = with pkgs; [ @@ -37,6 +41,11 @@ host.port = 8001; guest.port = 8001; } + { + from = "host"; + host.port = 8003; + guest.port = 8003; + } ]; }; security.sudo.wheelNeedsPassword = false;