Allow remote deployments

This commit is contained in:
thiloho
2023-08-04 09:32:11 +00:00
parent 17e152cecb
commit 952b3387d3
2 changed files with 10 additions and 1 deletions

View File

@@ -24,6 +24,10 @@
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
{ nix = {
nixPath = [ "nixpkgs=${nixpkgs}" ];
};
}
entrypoint entrypoint
NixOS-WSL.nixosModules.wsl NixOS-WSL.nixosModules.wsl
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager

View File

@@ -6,6 +6,8 @@
../shared.nix ../shared.nix
]; ];
nix.settings.trusted-users = [ "thiloho" ];
networking = { networking = {
hostName = "server"; hostName = "server";
firewall = { firewall = {
@@ -29,7 +31,10 @@
white-list = true; white-list = true;
}; };
}; };
openssh.enable = true; openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
nginx = { nginx = {
enable = true; enable = true;
virtualHosts = { virtualHosts = {