Luke Granger-Brown
b2e2f965c5
* *-frantech should be frantech-*, it's provider first * blade VMs now all begin bvm-
70 lines
1.5 KiB
Nix
70 lines
1.5 KiB
Nix
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{ depot, lib, pkgs, rebuilder, config, ... }:
|
|
let
|
|
inherit (depot.ops) secrets;
|
|
in {
|
|
imports = [
|
|
../../../third_party/nixpkgs/nixos/modules/profiles/qemu-guest.nix
|
|
../lib/low-space.nix
|
|
../lib/coredns/default.nix
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"ata_piix"
|
|
"uhci_hcd"
|
|
"virtio_pci"
|
|
"virtio_scsi"
|
|
"sr_mod"
|
|
"virtio_blk"
|
|
];
|
|
boot.kernelModules = [ "kvm-amd" ];
|
|
|
|
# Use GRUB.
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.version = 2;
|
|
boot.loader.grub.device = "/dev/vda";
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
fileSystems = {
|
|
"/" = {
|
|
device = "/dev/vda1";
|
|
fsType = "ext4";
|
|
};
|
|
};
|
|
|
|
nix.maxJobs = lib.mkDefault 1;
|
|
|
|
# Networking!
|
|
networking = {
|
|
hostName = "frantech-las01";
|
|
domain = "as205479.net";
|
|
hostId = "2b6a8f37";
|
|
|
|
nameservers = [
|
|
"2001:4860:4860::8888"
|
|
"2001:4860:4860::8844"
|
|
"8.8.8.8"
|
|
"8.8.4.4"
|
|
];
|
|
useDHCP = false;
|
|
defaultGateway = {
|
|
address = "205.185.116.1";
|
|
interface = "ens3";
|
|
};
|
|
defaultGateway6 = {
|
|
address = "2605:6400:20::1";
|
|
interface = "ens3";
|
|
};
|
|
interfaces.ens3 = {
|
|
ipv4.addresses = [{ address = "205.185.116.42"; prefixLength = 24; }];
|
|
ipv6.addresses = [{ address = "2605:6400:20:179b::1"; prefixLength = 48; }];
|
|
};
|
|
};
|
|
my.ip.tailscale = "100.127.132.77";
|
|
|
|
system.stateVersion = "21.05";
|
|
}
|