Add xeon02 configuration

This commit is contained in:
Rodrigo Arias 2023-04-27 16:28:12 +02:00
parent 141d77e2b6
commit 919f211536
2 changed files with 42 additions and 0 deletions

View File

@ -30,6 +30,28 @@
./xeon01/configuration.nix
];
};
xeon02 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
( {options, ...}: {
# Sel the nixos-config path to the one of the current flake
nixpkgs.overlays = [ bscpkgs.bscOverlay ];
nix.nixPath = [
"nixpkgs=${nixpkgs}"
"bscpkgs=${bscpkgs}"
"nixos-config=${self.outPath}/xeon02/configuration.nix"
"nixpkgs-overlays=${self.outPath}/overlays-compat"
];
nix.registry.nixpkgs.flake = nixpkgs;
nix.registry.bscpkgs.flake = bscpkgs;
system.configurationRevision =
if self ? rev
then self.rev
else throw ("Refusing to build from a dirty Git tree!");
})
./xeon02/configuration.nix
];
};
xeon07 = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [

20
xeon02/configuration.nix Normal file
View File

@ -0,0 +1,20 @@
{ config, pkgs, ... }:
{
imports = [ ../common/main.nix ];
# Select the this using the ID to avoid mismatches
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d535629";
networking = {
hostName = "xeon02";
interfaces.eno1.ipv4.addresses = [ {
address = "10.0.40.2";
prefixLength = 24;
} ];
interfaces.ibp5s0.ipv4.addresses = [ {
address = "10.0.42.2";
prefixLength = 24;
} ];
};
}