Files
vps-config/configuration.nix
T

37 lines
529 B
Nix

{ pkgs, ... }:
{
system.stateVersion = "26.05";
networking.hostName = "server";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
networking.firewall = {
enable = true;
allowedTCPPorts = [
22
80
443
];
};
environment.systemPackages = with pkgs; [
git
vim
curl
wget
];
}