From 952b3387d386f66b7396488c2c996f6279340f61 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Fri, 4 Aug 2023 09:32:11 +0000 Subject: [PATCH] Allow remote deployments --- flake.nix | 4 ++++ nixos-configurations/server/default.nix | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 7cce97e..912ebfc 100644 --- a/flake.nix +++ b/flake.nix @@ -24,6 +24,10 @@ system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ + { nix = { + nixPath = [ "nixpkgs=${nixpkgs}" ]; + }; + } entrypoint NixOS-WSL.nixosModules.wsl home-manager.nixosModules.home-manager diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 5b9f421..edf84eb 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -6,6 +6,8 @@ ../shared.nix ]; + nix.settings.trusted-users = [ "thiloho" ]; + networking = { hostName = "server"; firewall = { @@ -29,7 +31,10 @@ white-list = true; }; }; - openssh.enable = true; + openssh = { + enable = true; + settings.PasswordAuthentication = false; + }; nginx = { enable = true; virtualHosts = {