# # Testing: # doas "$(nix-build '' --no-out-link -A 'qemu')/bin/qemu-system-x86_64" \ # -accel kvm \ # -cpu host \ # -smp cores=8 \ # -m 32768 \ # -drive "file=$(nix-build '' --no-out-link -A 'OVMF.fd')/FV/OVMF.fd,if=pflash,format=raw,readonly=on" \ # -drive file=/tmp/localdisk.img,if=none,id=nvm,format=raw \ # -device nvme,serial=deadbeef,drive=nvm \ # -nic user,hostfwd=tcp::60022-:22 \ # -boot order=d \ # -cdrom "$(readlink -f /persist/machine_setup/nix/configuration/result/iso/nixos*.iso)" \ # -display vnc=127.0.0.1:0 # { config, lib, pkgs, ... }: { imports = [ ./disk-config.nix ./hardware-configuration.nix ./optimized_build.nix ./vm_disk.nix ]; # Generate with `head -c4 /dev/urandom | od -A none -t x4` networking.hostId = "fbd233d8"; networking.hostName = "hydra"; # Define your hostname. time.timeZone = "America/New_York"; i18n.defaultLocale = "en_US.UTF-8"; me.secureBoot.enable = false; # Mount tmpfs at /tmp boot.tmp.useTmpfs = true; me.emacs_flavor = "plainmacs"; me.graphical = false; me.hydra.enable = false; me.vm_disk.enable = true; me.wireguard.activated = [ ]; me.wireguard.deactivated = [ ]; me.zsh.enable = true; # Trust this key so nix running as root can ssh into hydra. users.users.talexander.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB/IlYTQ0M5pFN5tdoswh37CDl/gbULI3h+SsKXCansh talexander@odo" ]; }