dotfiles/nixos/boxes/bolty/default.nix

40 lines
898 B
Nix
Raw Normal View History

2023-01-01 18:37:49 +00:00
{ config, pkgs, inputs, lib, ... }: {
2021-10-01 10:06:37 +01:00
imports = [
../cli.nix
2023-01-01 18:37:49 +00:00
./bolty-boot.nix
2023-02-26 18:32:29 +00:00
./grafana.nix
./home-assistant.nix
2023-02-26 12:05:55 +00:00
./influxdb.nix
2021-10-30 10:22:04 +01:00
./matrix-server.nix
2023-01-01 18:37:49 +00:00
./nix-store-server.nix
2022-04-09 12:01:03 +01:00
./print-server.nix
2023-01-01 18:37:49 +00:00
./real-hardware.nix
2022-04-09 12:01:03 +01:00
./restic-server.nix
2023-02-26 12:05:55 +00:00
./tailscale-cert.nix
2022-12-21 14:51:21 +00:00
./woodpecker-agent.nix
2021-10-01 10:06:37 +01:00
];
2023-01-01 18:37:49 +00:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
2022-12-12 19:41:11 +00:00
programs.ccache.enable = true;
2022-12-21 10:47:15 +00:00
networking.hostName = "bolty";
2023-01-01 18:37:49 +00:00
boot.kernelModules = [ "kvm_amd" ];
2022-11-09 21:16:45 +00:00
virtualisation = {
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
};
};
environment.systemPackages = with pkgs; [
qemu
virt-manager
usbutils
virt-viewer
2022-12-09 08:30:15 +00:00
lm_sensors
2022-11-09 21:16:45 +00:00
];
2023-01-01 18:37:49 +00:00
networking.firewall.allowedTCPPorts = [ 5900 ];
2021-10-01 10:06:37 +01:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
security.allowUserNamespaces = true;
time.timeZone = "Europe/London";
}