first basic config for nixos-anywhere

This commit is contained in:
2026-07-23 17:32:31 +02:00
parent 130f637373
commit 97c0427ebe
5 changed files with 126 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
{ 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
];
}