mio-ops/Networks/raspberry_pi_rack.nix

37 lines
974 B
Nix
Raw Normal View History

2019-06-27 01:43:23 +00:00
# NixOps configuration for the Raspberry Pi 3B Rack
{
network = {
description = "Raspberry Pi 3B Rack";
};
defaults = {
imports =
[
../Hardware/raspberry_pi_3_model_B.nix
../Deployments/pi3B_rack.nix
../Deployments/host_common.nix
];
2019-07-02 01:27:24 +00:00
# Ensure the right package architecture is used
nixpkgs.localSystem = {
system = "aarch64-linux";
config = "aarch64-unknown-linux-gnu";
allowUnfree = true;
};
2019-06-27 01:43:23 +00:00
};
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.03"; # Did you read the comment?
system.autoUpgrade.enable = true;
system.autoUpgrade.channel = https://nixos.org/channels/nixos-19.03;
};
}