Files
nixos/hosts/unstable/isaiah/default.nix
T

75 lines
1.5 KiB
Nix
Raw Normal View History

2024-11-25 13:56:52 -06:00
{
2025-12-28 21:18:13 -06:00
config,
2024-11-25 13:56:52 -06:00
lib,
2025-12-28 21:18:13 -06:00
metadata,
2024-11-25 13:56:52 -06:00
...
}:
2023-12-12 16:25:58 -06:00
{
imports = [
./hardware-configuration.nix
2024-11-25 13:56:52 -06:00
];
boot = {
binfmt.emulatedSystems = [ "aarch64-linux" ];
extraModprobeConfig = "options kvm_amd nested=1";
kernel.sysctl = {
"net.bridge.bridge-nf-call-ip6tables" = 0;
"net.bridge.bridge-nf-call-iptables" = 0;
"net.bridge.bridge-nf-call-arptables" = 0;
};
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
systemd-boot = {
enable = true;
};
};
supportedFilesystems = [ "ntfs" ];
};
2024-10-18 16:46:35 -05:00
greg = {
2025-07-02 23:07:08 -05:00
kubernetes = {
enable = true;
vipInterface = "enp38s0";
2025-12-28 21:18:13 -06:00
vip = metadata.hosts.${config.networking.hostName}.ip;
2025-07-02 23:07:08 -05:00
priority = 255;
};
nebula.enable = true;
2025-12-30 20:21:16 -06:00
podman.enable = true;
2025-11-15 14:08:34 -06:00
tailscale = {
enable = true;
tags = [ "home" ];
};
2024-10-18 16:46:35 -05:00
remote-builder.enable = true;
2025-11-02 22:33:05 -06:00
runner = {
enable = true;
qemu = true;
};
gitea-runner = {
enable = true;
2026-04-05 16:51:31 -05:00
extraLabels = [ "bare-metal:host" ];
};
2024-10-18 16:46:35 -05:00
};
2023-12-12 23:22:29 -06:00
networking = {
2025-04-14 22:58:03 -05:00
firewall = {
enable = true;
allowedTCPPorts = [ 80 ];
checkReversePath = lib.mkForce false;
};
hostName = "isaiah";
2025-12-02 21:30:38 -06:00
interfaces.enp38s0.useDHCP = true;
2025-04-14 22:58:03 -05:00
useDHCP = false;
};
2024-11-25 13:56:52 -06:00
services = {
2025-05-19 20:10:21 -05:00
k3s.clusterInit = true; # This is the first node in the cluster
2024-11-25 13:56:52 -06:00
openssh = {
enable = true;
settings.PermitRootLogin = "yes";
};
};
2023-12-12 16:25:58 -06:00
}