51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
# SPDX-FileCopyrightText: 2024 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/minimal.nix
|
|
"${depot.third_party.disko}/module.nix"
|
|
./netcup-disk-config.nix
|
|
];
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
"ata_piix"
|
|
"uhci_hcd"
|
|
"virtio_pci"
|
|
"virtio_scsi"
|
|
"sr_mod"
|
|
"virtio_blk"
|
|
];
|
|
|
|
services.qemuGuest.enable = true;
|
|
|
|
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
|
|
|
|
nix.settings.max-jobs = lib.mkDefault 4;
|
|
|
|
# Networking!
|
|
networking = {
|
|
domain = "as205479.net";
|
|
|
|
nameservers = [
|
|
"2001:4860:4860::8888"
|
|
"2001:4860:4860::8844"
|
|
"8.8.8.8"
|
|
"8.8.4.4"
|
|
];
|
|
defaultGateway = {
|
|
interface = "enp7s0";
|
|
};
|
|
defaultGateway6 = {
|
|
interface = "enp7s0";
|
|
};
|
|
};
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
boot.loader.systemd-boot.enable = true;
|
|
}
|