depot/ops/nixos/oracle-lon01/default.nix

44 lines
1.1 KiB
Nix

# SPDX-FileCopyrightText: 2022 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
{ depot, lib, pkgs, config, modulesPath, ... }:
{
imports = [
"${modulesPath}/profiles/qemu-guest.nix"
];
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
fileSystems = {
"/" = { device = "/dev/mapper/ocivolume-root"; fsType = "xfs"; };
"/boot" = { device = "/dev/sda2"; fsType = "xfs"; };
"/boot/efi" = { device = "/dev/sda1"; fsType = "vfat"; };
};
nix.settings.max-jobs = lib.mkDefault 4;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot/efi";
boot.loader.systemd-boot.enable = true;
networking = {
hostName = "oracle-lon01";
domain = "as205479.net";
hostId = "3a5eb800";
nameservers = [
"2001:4860:4860::8888"
"2001:4860:4860::8844"
"8.8.8.8"
"8.8.4.4"
];
interfaces.enp0s3.useDHCP = true;
};
my.ip.tailscale = "100.93.85.40";
my.systemType = "aarch64-linux";
nix.gc.automatic = false;
system.stateVersion = "22.05";
}