Moved to clusters
Split out hosts too
This commit is contained in:
parent
d77d188e85
commit
c84d514a5e
32
clusters/pi3B_rack.nix
Normal file
32
clusters/pi3B_rack.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
# NixOps configuration for the Raspberry Pi 3B Rack
|
||||
|
||||
{
|
||||
|
||||
imports =
|
||||
[
|
||||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||
../Hardware/raspberry_pi_3_model_B.nix
|
||||
../Deployments/host_common.nix
|
||||
../Deployments/pi_common.nix
|
||||
];
|
||||
|
||||
# Ensure the right package architecture is used
|
||||
nixpkgs.localSystem = {
|
||||
system = "aarch64-linux";
|
||||
config = "aarch64-unknown-linux-gnu";
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
networking.wireless.enable = false; # Toggles wireless support via wpa_supplicant.
|
||||
|
||||
documentation = {
|
||||
nixos.enable = false; # Save some space by disabling the manual
|
||||
};
|
||||
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFq6/C6ZSM8nS091fqw/om9LRszHDmS82ZTL7+GaSBnz craige@pi-tri"
|
||||
];
|
||||
};
|
||||
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
# NixOps configuration for the Raspberry Pi 3B Rack
|
||||
|
||||
{
|
||||
network = {
|
||||
description = "Raspberry Pi 3B Rack";
|
||||
};
|
||||
|
||||
defaults = {
|
||||
imports =
|
||||
[
|
||||
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||
../Hardware/raspberry_pi_3_model_B.nix
|
||||
../Deployments/host_common.nix
|
||||
../Deployments/pi_common.nix
|
||||
];
|
||||
|
||||
# Ensure the right package architecture is used
|
||||
nixpkgs.localSystem = {
|
||||
system = "aarch64-linux";
|
||||
config = "aarch64-unknown-linux-gnu";
|
||||
allowUnfree = true;
|
||||
};
|
||||
|
||||
networking.wireless.enable = false; # Toggles wireless support via wpa_supplicant.
|
||||
|
||||
documentation = {
|
||||
nixos.enable = false; # Save some space by disabling the manual
|
||||
};
|
||||
|
||||
users.users.root = {
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFq6/C6ZSM8nS091fqw/om9LRszHDmS82ZTL7+GaSBnz craige@pi-tri"
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "19.09"; # Did you read the comment?
|
||||
system.autoUpgrade.enable = true;
|
||||
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;
|
||||
|
||||
};
|
||||
|
||||
pi-tri = {
|
||||
imports = [
|
||||
../Hosts/pi-tri.nix
|
||||
];
|
||||
deployment.targetHost = "10.69.0.203";
|
||||
};
|
||||
|
||||
pi-ceithir = {
|
||||
imports = [
|
||||
../Hosts/pi-ceithir.nix
|
||||
];
|
||||
deployment.targetHost = "10.69.0.204";
|
||||
};
|
||||
|
||||
|
||||
pi-coig = {
|
||||
imports = [
|
||||
../Hosts/pi-coig.nix
|
||||
];
|
||||
deployment.targetHost = "10.69.0.205";
|
||||
};
|
||||
|
||||
}
|
Loading…
Reference in a new issue