summary refs log tree commit diff
path: root/host/Rory-ovh/vm.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-23 13:27:59 +0100
committerRory& <root@rory.gay>2026-01-23 13:27:59 +0100
commit20b74076898028eeb26e7496c942ae12e464e8cc (patch)
tree2db8dfdaf71e6b1ba19617807b57878386e6fba3 /host/Rory-ovh/vm.nix
downloadSpacebarContainerRepro-master.tar.xz
initial commit HEAD master
Diffstat (limited to 'host/Rory-ovh/vm.nix')
-rw-r--r--host/Rory-ovh/vm.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/host/Rory-ovh/vm.nix b/host/Rory-ovh/vm.nix
new file mode 100644

index 0000000..7bc237c --- /dev/null +++ b/host/Rory-ovh/vm.nix
@@ -0,0 +1,50 @@ +{ + nixpkgs, + modulesPath, + pkgs, + lib, + ... +}: +{ + imports = [ + # (modulesPath + "/virtualisation/qemu-vm.nix") + ]; + + networking.firewall.enable = false; + + boot = { + initrd = { + systemd.enable = true; + systemd.emergencyAccess = true; + }; + kernelParams = [ + "console=ttyS0,115200" + "systemd.gpt_auto=0" + #"console=tty1" + #"quiet" + ]; + loader.timeout = 1; + }; + boot.supportedFilesystems = lib.mkForce [ ]; + hardware.enableRedistributableFirmware = lib.mkForce false; + #environment.systemPackages = lib.mkForce [ ]; + documentation.enable = lib.mkForce false; + documentation.nixos.enable = lib.mkForce false; + networking.wireless.enable = lib.mkForce false; + + console = { + earlySetup = true; + font = "${pkgs.cozette}/share/consolefonts/cozette6x13.psfu"; + packages = with pkgs; [ cozette ]; + }; + + system = { + #activatable = false; + copySystemConfiguration = false; + includeBuildDependencies = false; + disableInstallerTools = lib.mkForce true; + build = { + separateActivationScript = true; + }; + }; +}