main @ 48 LINES
[ HISTORY ] [ UP ]
┌─ NIX ──────────────────────────────────────────────────────────────────────┐
│ { │
│ pkgs, │
│ lib, │
│ ... │
│ }: let │
│ inherit (lib) mkForce getExe'; │
│ in { │
│ ooknet.virtualization.guest.type = "qemu"; │
│ boot = { │
│ kernelPackages = pkgs.linuxPackages_latest; │
│ kernelModules = []; │
│ # LISH console support │
│ kernelParams = ["console=ttyS0,19200n8"]; │
│ extraModulePackages = []; │
│ growPartition = true; │
│ initrd = { │
│ availableKernelModules = [ │
│ # modules generated by nixos-generate-config │
│ "virtio_pci" │
│ "virtio_scsi" │
│ "ahci" │
│ "sd_mod" │
│ ]; │
│ }; │
│ loader = { │
│ grub = { │
│ enable = true; │
│ device = "nodev"; │
│ forceInstall = true; │
│ copyKernels = true; │
│ fsIdentifier = "label"; │
│ splashImage = null; │
│ extraConfig = '' │
│ serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1; │
│ terminal_input serial; │
│ terminal_output serial │
│ ''; │
│ │
│ extraInstallCommands = "${getExe' pkgs.coreutils "ln"} -fs /boot/grub /boo │
│ t/grub2"; │
│ }; │
│ timeout = mkForce 10; │
│ # disable base settings │
│ efi.canTouchEfiVariables = mkForce false; │
│ systemd-boot.enable = mkForce false; │
│ }; │
│ }; │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ NIX ────────────────────────────────┐
│ { │
│ pkgs, │
│ lib, │
│ ... │
│ }: let │
│ inherit (lib) mkForce getExe'; │
│ in { │
│ ooknet.virtualization.guest.type = "qemu"; │
│ boot = { │
│ kernelPackages = pkgs.linuxPackages_late │
│ st; │
│ kernelModules = []; │
│ # LISH console support │
│ kernelParams = ["console=ttyS0,19200n8"] │
│ ; │
│ extraModulePackages = []; │
│ growPartition = true; │
│ initrd = { │
│ availableKernelModules = [ │
│ # modules generated by nixos-generat │
│ e-config │
│ "virtio_pci" │
│ "virtio_scsi" │
│ "ahci" │
│ "sd_mod" │
│ ]; │
│ }; │
│ loader = { │
│ grub = { │
│ enable = true; │
│ device = "nodev"; │
│ forceInstall = true; │
│ copyKernels = true; │
│ fsIdentifier = "label"; │
│ splashImage = null; │
│ extraConfig = '' │
│ serial --speed=19200 --unit=0 --wo │
│ rd=8 --parity=no --stop=1; │
│ terminal_input serial; │
│ terminal_output serial │
│ ''; │
│ │
│ extraInstallCommands = "${getExe' pk │
│ gs.coreutils "ln"} -fs /boot/grub /boot/grub │
│ 2"; │
│ }; │
│ timeout = mkForce 10; │
│ # disable base settings │
│ efi.canTouchEfiVariables = mkForce fal │
│ se; │
│ systemd-boot.enable = mkForce false; │
│ }; │
│ }; │
│ } │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET