From fcc9d4815fe5f0f401247421431bde4fc6fbb95b Mon Sep 17 00:00:00 2001 From: "Collin J. Doering" Date: Mon, 1 Apr 2024 22:32:53 -0400 Subject: [PATCH] balg02: Specify console kernel argument for ttyS0 * .guix/guix-na/config/balg02.scm: Remove export of temporary balg02 function --- .guix/guix-na/config/balg02.scm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.guix/guix-na/config/balg02.scm b/.guix/guix-na/config/balg02.scm index aeb6644..d695581 100644 --- a/.guix/guix-na/config/balg02.scm +++ b/.guix/guix-na/config/balg02.scm @@ -27,24 +27,28 @@ #:use-module (gnu services networking) #:use-module (gnu services ssh) #:use-module (gnu services web) - #:export (balg02 %system)) + #:export (%system)) (define %automation-user "auto") -(define (balg02 disk) +(define %system (operating-system (host-name "balg02") (timezone "US/Central") (locale "en_US.utf8") (keyboard-layout (keyboard-layout "us")) + (kernel-arguments + (cons* "console=ttyS0,115200" "console=tty0" + %default-kernel-arguments)) + (bootloader (bootloader-configuration (bootloader grub-efi-bootloader) (terminal-inputs '(console serial_1)) (terminal-outputs '(console serial_1)) (serial-unit 1) (serial-speed 115200) - (targets `(,disk)))) + (targets '("/boot/efi")))) (file-systems (append (list (file-system @@ -116,6 +120,4 @@ (gateway "216.37.76.1")))) (name-servers '("216.37.64.2" "216.37.64.3"))))) (service ntp-service-type)) - %base-services)))) - -(define %system (balg02 "/dev/sda")) + %base-services))))