nixos-hetzner/configuration.nix

32 lines
703 B
Nix
Raw Normal View History

2026-10-08 19:54:18 +02:00
{ modulesPath, ... }: {
2026-10-08 20:09:33 +02:00
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
./forgejo.nix
];
2026-10-08 19:54:18 +02:00
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";
}