Created
January 1, 2025 00:36
-
-
Save azdle/e143712c01688419ff397ce46ea9dc32 to your computer and use it in GitHub Desktop.
Guix configuration for PCEngines APU2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: scheme; -*- | |
;; Guix configuration for PCEngines APU2 | |
(use-modules (gnu)) | |
(use-service-modules networking ssh) | |
(use-package-modules screen ssh) | |
(operating-system | |
(host-name "apu2-example") | |
(timezone "Etc/Utc") | |
(locale "en_US.utf8") | |
(bootloader (bootloader-configuration | |
(bootloader grub-bootloader) | |
(targets '("/dev/sda")) | |
(terminal-outputs '(gfxterm serial)) | |
(terminal-inputs '(console serial)) | |
(serial-unit 0) | |
(serial-speed 115200))) | |
(kernel-arguments (list "quiet" "console=tty0")) ; or this? "console=ttyS0,115200")) | |
(file-systems (append (list (file-system | |
(device "/dev/sda2") | |
(options "subvol=root") | |
(mount-point "/") | |
(type "btrfs"))) | |
%base-file-systems)) | |
(users (cons (user-account | |
(name "alice") | |
(group "users") | |
(supplementary-groups '("wheel" "dialout"))) | |
%base-user-accounts)) | |
(packages (cons screen %base-packages)) | |
(services (append (list | |
(service agetty-service-type | |
(agetty-configuration | |
(extra-options '("-L")) ; no carrier detect | |
(baud-rate "115200") | |
(term "vt100") | |
(tty "ttyS0"))) | |
(service dhcp-client-service-type) | |
(service openssh-service-type | |
(openssh-configuration | |
(openssh openssh-sans-x) | |
(port-number 22)))) | |
%base-services))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment