2023-05-16 09:53:27 +10:00
|
|
|
{ inputs, ... }:
|
2021-08-17 20:31:59 +02:00
|
|
|
{
|
|
|
|
imports = [
|
2023-05-16 09:53:27 +10:00
|
|
|
inputs.disko.nixosModules.disko
|
2021-08-17 20:31:59 +02:00
|
|
|
./hardware-configuration.nix
|
2023-05-17 07:21:20 +10:00
|
|
|
inputs.self.nixosModules.common
|
|
|
|
inputs.self.nixosModules.hercules-ci
|
|
|
|
inputs.self.nixosModules.remote-builder-user
|
2021-08-17 20:31:59 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
nixpkgs.system = "aarch64-linux";
|
|
|
|
|
2023-01-06 13:12:43 +10:00
|
|
|
# disable kvm/nixos-tests
|
2023-06-11 12:53:38 +10:00
|
|
|
nix.settings.system-features = [ "big-parallel" ];
|
2022-12-26 18:31:16 +10:00
|
|
|
|
2023-03-09 09:01:29 +01:00
|
|
|
boot.loader.systemd-boot.enable = true;
|
2023-04-18 18:32:12 +10:00
|
|
|
boot.loader.systemd-boot.configurationLimit = 3;
|
2023-03-09 09:01:29 +01:00
|
|
|
boot.loader.efi.canTouchEfiVariables = false;
|
2022-12-30 20:49:32 +01:00
|
|
|
|
|
|
|
# Make it easier to recover via serial console in case something goes wrong.
|
|
|
|
services.getty.autologinUser = "root";
|
2021-08-17 20:31:59 +02:00
|
|
|
|
2022-08-13 11:13:06 +02:00
|
|
|
networking.hostName = "build04";
|
2021-08-17 20:31:59 +02:00
|
|
|
networking.hostId = "8daf74c0";
|
|
|
|
|
|
|
|
system.stateVersion = "21.11";
|
2022-12-30 20:49:32 +01:00
|
|
|
systemd.network = {
|
|
|
|
enable = true;
|
|
|
|
networks.ethernet.extraConfig = ''
|
|
|
|
[Match]
|
|
|
|
Type = ether
|
|
|
|
[Network]
|
2023-07-08 08:20:04 +02:00
|
|
|
DHCP = yes
|
|
|
|
IPv6AcceptRA = true
|
|
|
|
# Usually dhcpv6 should give us a public address, but it doesn't seem to work for oracle with both networkd/dhcpcd
|
|
|
|
# so we set it manually here. One can get the address by clicking on the primary vnic in the oracle console and
|
|
|
|
# under Resources -> IPv6 Addresses
|
|
|
|
Address = 2603:c022:c001:b500:f1d4:5343:e8ce:d6ba
|
2022-12-30 20:49:32 +01:00
|
|
|
'';
|
|
|
|
};
|
2021-08-17 20:31:59 +02:00
|
|
|
}
|
|
|
|
|
2022-12-30 20:49:32 +01:00
|
|
|
## `opc` is the username from the oracle image. Replace with root if we are booted into nixos.
|
2023-02-24 08:21:09 +01:00
|
|
|
# nix run github:numtide/nixos-anywhere#nixos-anywhere -- \
|
2022-12-30 20:49:32 +01:00
|
|
|
# --debug \
|
2023-02-06 18:09:06 +10:00
|
|
|
# --flake '.#build04' \
|
2022-12-30 20:49:32 +01:00
|
|
|
# opc@141.148.235.248
|