nixos-hetzner/configuration.nix
2026-10-08 21:47:52 +02:00

32 lines
714 B
Nix

{ modulesPath, ... }: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
./forgejo.nix
./web.nix
];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
networking.hostName = "myserver";
networking.useDHCP = true;
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
};
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPmPNXFUH+yVRbsvgl+51x6UkJfR2eQB9GTKlWKFg3dP freek@MacBookPro.localdomain"
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
options = "--delete-older-than 14d";
};
system.stateVersion = "25.11";
}