Re-jigged hosts

This commit is contained in:
Serĉanto de Scio 2019-10-17 07:45:55 +10:00
parent 772b883c1d
commit 0ab4defbe6
Signed by: sercanto
GPG key ID: A4122FF3971B6865
2 changed files with 47 additions and 67 deletions

47
Networks/pi3B_rack.nix Normal file
View file

@ -0,0 +1,47 @@
# 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
../Hosts/pi-tri.nix
../Hosts/pi-ceithir/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"
];
};
environment.systemPackages = with pkgs; [
lsusb # Tools for working with USB devices, such as lsusb
];
system.stateVersion = "19.09"; # Did you read the comment?
system.autoUpgrade.enable = true;
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;
};
}

View file

@ -1,67 +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/pi3B_rack.nix
../Deployments/host_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"
];
};
environment.systemPackages = with pkgs; [
lsusb # Tools for working with USB devices, such as lsusb
];
};
pi-tri =
{ config, pkgs, lib, ... }:
{
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
system.autoUpgrade.enable = true;
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;
};
pi-ceithir =
{ config, pkgs, lib, ... }:
{
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you
# should.
system.stateVersion = "19.09"; # Did you read the comment?
system.autoUpgrade.enable = true;
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.09;
};
}