2024-08-08 12:16:04 +00:00
|
|
|
{ modulesPath, config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
sources = import ./../shared/sources/sources.nix;
|
|
|
|
in {
|
|
|
|
imports = [
|
|
|
|
(modulesPath + "/installer/scan/not-detected.nix")
|
|
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
|
|
(sources.disko + "/module.nix")
|
|
|
|
./../shared/modules
|
2024-08-08 12:36:04 +00:00
|
|
|
./../shared/platforms/hetzner.nix
|
2024-08-08 12:16:04 +00:00
|
|
|
|
|
|
|
./gerd/disk-zfs.nix
|
|
|
|
|
|
|
|
./../shared/applications/server/nginx.nix
|
|
|
|
./../shared/applications/state/ssh.nix
|
|
|
|
|
|
|
|
./gerd/services/forgejo.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "gerd";
|
|
|
|
networking.hostId = "e1166ac9";
|
|
|
|
boot.loader.grub = {
|
|
|
|
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
|
|
|
|
# devices = [ ];
|
|
|
|
efiSupport = true;
|
|
|
|
efiInstallAsRemovable = true;
|
|
|
|
};
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
2024-08-08 12:36:04 +00:00
|
|
|
mine = {
|
|
|
|
state.enable = true;
|
|
|
|
ssh-on-boot.enable = true;
|
|
|
|
|
|
|
|
platforms.hetzner.network.address = [
|
|
|
|
"65.108.221.240/32"
|
|
|
|
"2a01:4f9:c012:743e::1/64"
|
|
|
|
];
|
|
|
|
};
|
2024-08-08 12:16:04 +00:00
|
|
|
|
2024-08-08 13:05:39 +00:00
|
|
|
services.teeworlds = {
|
|
|
|
enable = true;
|
|
|
|
openPorts = true;
|
|
|
|
};
|
|
|
|
|
2024-08-08 12:16:04 +00:00
|
|
|
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
2024-08-08 12:36:04 +00:00
|
|
|
zfs rollback -r rpool/root@blank
|
2024-08-08 12:16:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
jq
|
|
|
|
];
|
|
|
|
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPuma8g+U8Wh+4mLvZoV9V+ngPqxjuIG4zhsbaTeXq65 eyjhb@chronos"
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGee4uz+HDOj4Y4ANOhWJhoc4mMLP1gz6rpKoMueQF2J rendal@popper"
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
}
|