Add xeon02 configuration
This commit is contained in:
parent
141d77e2b6
commit
919f211536
22
flake.nix
22
flake.nix
@ -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
20
xeon02/configuration.nix
Normal 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;
|
||||
} ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user