Advertisement
Guest User

config.scm bananapi

a guest
Jan 20th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 1.53 KB | None | 0 0
  1. (use-modules (gnu) (gnu bootloader extlinux)
  2.          (gnu packages bootloaders)
  3.          (gnu packages bash)
  4.          (gnu packages linux)
  5.          (gnu packages gnupg)
  6.          (gnu packages compression)
  7.          )
  8.  
  9. (define u-boot-bananapi-m1
  10.  (make-u-boot-package "Bananapi-M1" "arm-linux-gnueabihf"))
  11.  
  12. (define u-boot-allwinner-bootloader
  13.  (@@ (gnu bootloader u-boot) u-boot-allwinner-bootloader))
  14.  
  15. (define u-boot-bananapi-m1-bootloader
  16.  (bootloader
  17.   (inherit u-boot-allwinner-bootloader)
  18.   (package u-boot-bananapi-m1)))
  19.  
  20. (use-service-modules networking ssh)
  21.  
  22. (use-package-modules certs wget screen ssh)
  23.  
  24. (operating-system
  25.  (host-name "GuixARM")
  26.  (timezone "Europe/Moscow")
  27.  (locale "en_US.utf8")
  28.  
  29.  (file-systems
  30.   (cons* (file-system
  31.       (device "/dev/mmcblk0p1")
  32.           (mount-point "/")
  33.           (type "ext4"))
  34.          %base-file-systems))
  35.  
  36.  (bootloader (bootloader-configuration
  37.               (bootloader u-boot-bananapi-m1-bootloader)
  38.               (target "/dev/mmcblk0")))
  39.  
  40.  (initrd-modules (cons* "sd_mod"
  41.             "ahci_sunxi"
  42.             "sunxi-mmc"
  43.          %base-initrd-modules))
  44.  
  45.  (users (cons (user-account
  46.            (name "user")
  47.            (comment "Hacker")
  48.            (group "users")
  49.            (supplementary-groups '("wheel" "netdev" "users" "audio" "video"))
  50.            (home-directory "/home/user"))
  51.               %base-user-accounts))
  52.  
  53.  (packages (cons* nss-certs         ;for HTTPS access
  54.           bash
  55.           openssh
  56.           lm-sensors
  57.           gnupg
  58.           wget
  59.           unzip
  60.        %base-packages))
  61.  
  62.  (name-service-switch %mdns-host-lookup-nss))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement