dotfiles/nixos/boxes/bolty/default.nix

42 lines
813 B
Nix

{
config,
pkgs,
inputs,
lib,
...
}: {
imports = [
./bolty-boot.nix
./real-hardware.nix
../cli.nix
./home-assistant.nix
./matrix-server.nix
./print-server.nix
./restic-server.nix
./woodpecker-agent.nix
];
boot.binfmt.emulatedSystems = ["aarch64-linux"];
programs.ccache.enable = true;
networking.hostName = "bolty";
boot.kernelModules = ["kvm_amd"];
virtualisation = {
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
};
};
environment.systemPackages = with pkgs; [
qemu
virt-manager
usbutils
virt-viewer
lm_sensors
];
networking.firewall.allowedTCPPorts = [5900];
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
security.allowUserNamespaces = true;
time.timeZone = "Europe/London";
}