summary refs log tree commit diff
path: root/host/Rory-ovh/vm.nix
blob: 7bc237cd1ba041268421a3d93f59d09fdbb0e6ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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;
    };
  };
}