add morax

This commit is contained in:
waveringana 2025-06-04 06:01:52 -04:00
parent 256ac491c8
commit edef24fa08
8 changed files with 95 additions and 3 deletions

View file

@ -28,8 +28,8 @@
# pin host platform & microcode
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault
config.hardware.enableRedistributableFirmware;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
networking.hostName = "focalor";
networking.hostId = "84bdc587";

45
hosts/morax/default.nix Normal file
View file

@ -0,0 +1,45 @@
{ config, lib, pkgs, modulesPath, inputs, ... }:
{
imports = [
./hardware.nix
./secrets.nix
../../common/system.nix
../../common/users.nix
../../common/services.nix
../../host-secrets.nix
];
system.stateVersion = "25.05";
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
hardware.enableRedistributableFirmware = true;
hardware.enableAllHardware = lib.mkForce false; #https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-2868994145
networking = {
hostName = "morax";
hostId = "2631a44a";
firewall.enable = false;
defaultGateway = {
address = "10.0.0.1";
interface = "eth0";
};
nameservers = [ "1.1.1.1" ];
interfaces.eth0 = {
ipv4.addresses = [{
address = "10.0.0.210";
prefixLength = 24;
}];
};
};
environment.systemPackages = with pkgs; [
inputs.agenix.packages.aarch64-linux.default
];
virtualisation.docker = {
enable = true;
enableOnBoot = true;
};
}

3
hosts/morax/hardware.nix Normal file
View file

@ -0,0 +1,3 @@
{
}

3
hosts/morax/secrets.nix Normal file
View file

@ -0,0 +1,3 @@
{
}