From c4de0f7452a6b912445d16811e0108bd83a65144 Mon Sep 17 00:00:00 2001 From: schererleander Date: Fri, 30 May 2025 03:19:21 +0200 Subject: add nginx --- flake.nix | 2 -- hosts/vps/configuration.nix | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index fcc1078..b2b0be4 100644 --- a/flake.nix +++ b/flake.nix @@ -26,8 +26,6 @@ linux-system = "x86_64-linux"; darwin-system = "aarch64-darwin"; username = "schererleander"; - email = "leander@schererleander.de"; - desktop = "nixos"; in { nixosConfigurations.nixos = nixpkgs.lib.nixosSystem { system = linux-system; diff --git a/hosts/vps/configuration.nix b/hosts/vps/configuration.nix index ba29071..c06c77b 100644 --- a/hosts/vps/configuration.nix +++ b/hosts/vps/configuration.nix @@ -18,8 +18,23 @@ services.openssh = { enable = true; + ports = [ 88693 ]; + settings = { + PasswordAuthentication = false; + X11Forwarding = false; + PermitRootLogin = "yes"; + }; }; + services.nginx = { + enable = true; + virtualHosts."schererleander.de" = { + root = "/var/www/site"; + }; + }; + + networking.firewall.allowedTCPPorts = [ 88693 ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; nixpkgs.config.allowUnfree = true; system.stateVersion = "25.05"; -- cgit v1.3.1