Files
nixos-cluster/hosts/opti1/default.nix
2025-07-03 16:25:27 +00:00

29 lines
542 B
Nix

{
lib,
pkgs,
config,
inputs,
...
}: {
imports = [
./hardware-configuration.nix
];
nixpkgs.hostPlatform.system = "x86_64-linux";
networking.hostName = "opti1";
networking.interfaces.end0.ipv4.addresses = [
{
address = "192.168.4.36";
prefixLength = 24;
}
];
networking.defaultGateway = "192.168.4.1";
networking.nameservers = ["192.168.4.1" "8.8.8.8"];
# Bootloader.
boot.loader.grub.enable = true;
boot.loader.grub.device = "/dev/nvme0n1";
boot.loader.grub.useOSProber = true;
}