From d0ae4e3343d84b001d852d2a0523f98d771bef30 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 13 Dec 2023 12:16:53 +0900 Subject: [PATCH] Update --- nixos/hosts/osaka-linode-01/default.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/osaka-linode-01/default.nix b/nixos/hosts/osaka-linode-01/default.nix index 4e46f107..70f127d4 100644 --- a/nixos/hosts/osaka-linode-01/default.nix +++ b/nixos/hosts/osaka-linode-01/default.nix @@ -6,15 +6,23 @@ ./wireguard.nix ]; - # boot.loader.grub.enable = true; - # boot.loader.grub.device = "/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi-disk-0"; - # boot.loader.grub.efiSupport = true; - boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_scsi" "ahci" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + # Enable LISH + boot.kernelParams = [ "console=ttyS0,19200n8" ]; + boot.loader.grub.extraConfig = '' + serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1; + terminal_input serial; + terminal_output serial + ''; + + boot.loader.grub.forceInstall = true; + boot.loader.grub.device = "nodev"; + boot.loader.timeout = 10; + fileSystems."/" = { device = "/dev/disk/by-label/nixos"; fsType = "ext4";