2019-07-02 03:04:55 +00:00
|
|
|
# NixOps configuration for the Linode VMs
|
2019-07-02 01:34:42 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
network = {
|
|
|
|
description = "Linode servers";
|
|
|
|
};
|
|
|
|
|
|
|
|
defaults = {
|
|
|
|
imports =
|
|
|
|
[
|
2019-07-02 01:53:32 +00:00
|
|
|
../Hardware/linode_vm.nix
|
2019-07-02 01:34:42 +00:00
|
|
|
../Deployments/host_common.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
# Ensure the right package architecture is used
|
|
|
|
nixpkgs.localSystem = {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
config = "x86_64-unknown-linux-gnu";
|
|
|
|
allowUnfree = true;
|
|
|
|
};
|
2019-07-02 03:04:55 +00:00
|
|
|
|
|
|
|
# Configure firewall defaults:
|
|
|
|
networking.firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 22 ];
|
|
|
|
trustedInterfaces = [ "lo" ];
|
|
|
|
};
|
2019-07-02 01:34:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cuallaidh =
|
|
|
|
{ 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;
|
|
|
|
};
|
|
|
|
}
|