summary refs log tree commit diff
path: root/host/Rory-ovh/vm.nix
diff options
context:
space:
mode:
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; + }; + }; +}