Files
nixos/hosts/isaiah/default.nix
T

109 lines
2.1 KiB
Nix
Raw Normal View History

2024-11-25 13:56:52 -06:00
{
2025-05-20 22:51:22 -05:00
config,
2024-11-25 13:56:52 -06:00
lib,
top,
...
}:
2023-12-12 16:25:58 -06:00
{
imports = [
./hardware-configuration.nix
2024-11-25 13:56:52 -06:00
top.proxmox.nixosModules.proxmox-ve
];
2025-04-14 22:58:03 -05:00
age.secrets = {
2025-05-20 22:51:22 -05:00
runner-reg.file = ../../secrets/gitlab/kubernetes-k3s-local.age;
2025-04-14 22:58:03 -05:00
};
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;
configurationLimit = 10;
};
};
supportedFilesystems = [ "ntfs" ];
};
2024-10-18 16:46:35 -05:00
greg = {
2025-05-19 20:10:21 -05:00
kubernetes.enable = true;
2024-10-18 16:46:35 -05:00
tailscale.enable = true;
remote-builder.enable = true;
};
2023-12-12 23:22:29 -06:00
2024-11-25 13:56:52 -06:00
fileSystems = {
"/media/proxmox" = {
device = "10.42.1.4:/volume1/proxmox";
fsType = "nfs";
options = [ "noatime" ];
2024-11-18 21:11:17 -06:00
};
};
2024-11-25 13:56:52 -06:00
networking = {
defaultGateway = {
address = " 10.42.1.1";
2025-05-19 21:47:35 -05:00
interface = "enp38s0";
};
2025-04-14 22:58:03 -05:00
firewall = {
enable = true;
allowedTCPPorts = [ 80 ];
checkReversePath = lib.mkForce false;
};
hostName = "isaiah";
interfaces = {
2025-05-19 21:47:35 -05:00
enp38s0 = {
2024-10-18 16:46:35 -05:00
ipv4.addresses = [
{
address = "10.42.1.6";
prefixLength = 16;
}
];
};
};
2024-10-18 16:46:35 -05:00
nameservers = [ "10.42.1.5" ];
2025-04-14 22:58:03 -05:00
useDHCP = false;
};
2024-11-25 13:56:52 -06:00
services = {
2025-04-14 22:58:03 -05:00
gitlab-runner = {
enable = true;
settings = {
concurrent = 5;
};
2025-05-20 22:51:22 -05:00
services = {
kubernetes = {
authenticationTokenConfigFile = config.age.secrets.runner-reg.path;
executor = "shell";
2025-04-14 22:58:03 -05:00
};
2025-05-20 22:51:22 -05:00
};
2025-04-14 22:58:03 -05:00
};
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";
};
};
2025-04-14 22:58:03 -05:00
virtualisation = {
libvirtd = {
enable = true;
allowedBridges = [
"br0"
"virbr0"
];
onBoot = "ignore"; # only restart VMs labeled 'autostart'
qemu.ovmf.enable = true;
};
};
2023-12-12 16:25:58 -06:00
}