2019-06-27 01:42:58 +00:00
|
|
|
# NixOps configuration for pi-tri
|
|
|
|
|
2019-10-16 22:45:37 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
2019-06-27 01:42:58 +00:00
|
|
|
{
|
2019-10-16 22:45:37 +00:00
|
|
|
imports = [
|
2019-12-09 06:18:58 +00:00
|
|
|
../clusters/pi3B_rack.nix
|
2019-10-16 22:45:37 +00:00
|
|
|
];
|
2019-06-27 01:42:58 +00:00
|
|
|
|
2019-12-09 06:18:58 +00:00
|
|
|
deployment.targetHost = "10.69.0.203";
|
2019-10-16 22:45:37 +00:00
|
|
|
networking.hostName = "pi-tri"; # Define your hostname.
|
2019-10-15 15:12:08 +00:00
|
|
|
|
2019-10-16 23:22:38 +00:00
|
|
|
# File systems unique to this host:
|
|
|
|
fileSystems = {
|
|
|
|
"/nix" = {
|
|
|
|
device = "/dev/disk/by-label/nix";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-10-16 22:45:37 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnupg # GPL OpenPGP implementation
|
|
|
|
nix-zsh-completions # ZSH completions for Nix, NixOS, and NixOps
|
|
|
|
nixops # NixOS cloud provisioning and deployment tool
|
|
|
|
];
|
2019-12-09 06:18:58 +00:00
|
|
|
|
|
|
|
nix.nixPath = [
|
|
|
|
"nixpkgs=https://nixos.org/channels/nixos-19.09/nixexprs.tar.xz"
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "19.09"; # The version of NixOS originally installed
|
2019-06-27 01:42:58 +00:00
|
|
|
}
|