hosts/checkmate: init

This commit is contained in:
Max Headroom 2023-03-01 00:12:08 +01:00
parent 088bd500ba
commit 50a18fc9a1
4 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,21 @@
tools: {
ssh.id = with tools.dns; {
publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINImnMfEzUBU5qiuu05DMPrddTGypOtr+cL1/yQN2GFn";
hostNames = subResolve "checkmate" "node";
};
interfaces = {
primary = {
addr = "10.0.243.198";
addrPublic = "152.67.73.164";
link = "ens3";
};
};
enterprise = {
subdomain = "node";
};
arch = "x86_64";
nixos = import ./system.nix;
}

View file

@ -0,0 +1,12 @@
{ modulesPath, ... }:
{
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
fileSystems."/boot" = { device = "/dev/disk/by-partlabel/boot"; fsType = "vfat"; };
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/disk/by-partlabel/rootfs"; fsType = "xfs"; };
swapDevices = [ { device = "/dev/disk/by-partlabel/swap"; } ];
}

View file

@ -0,0 +1,34 @@
{ aspect, inputs, hosts, ... }:
{
imports =
[
# Hardware
./hardware-configuration.nix
inputs.agenix.nixosModules.age
aspect.modules.sss
]
++ aspect.sets.server;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "checkmate";
networking.nameservers = [ hosts.VEGAS.interfaces.vstub.addr ];
time.timeZone = "Europe/Zurich";
networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true;
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
system.stateVersion = "21.11";
}

View file

@ -6,6 +6,7 @@ in with tools.dns; {
VEGAS = import ./VEGAS tools;
prophet = import ./prophet tools;
soda = import ./soda tools;
checkmate = import ./checkmate tools;
# Non-NixOS machine metadata
AnimusAlpha = let hostNames = [ "alpha.animus.com" "animus.com" ]; in {