diff --git a/flake.nix b/flake.nix index 70cdb8b..a4c037d 100644 --- a/flake.nix +++ b/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 = [ diff --git a/xeon02/configuration.nix b/xeon02/configuration.nix new file mode 100644 index 0000000..5d097dd --- /dev/null +++ b/xeon02/configuration.nix @@ -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; + } ]; + }; +}