Advertisement
Guest User

config.scm bananapi

a guest
Jan 19th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 3.00 KB | None | 0 0
  1. (use-modules (gnu) (gnu bootloader extlinux)
  2.          (gnu bootloader u-boot)
  3.          (gnu bootloader)
  4.          (gnu packages bootloaders)
  5.          (gnu system nss)
  6.          (gnu packages display-managers)
  7.          (gnu packages bash)
  8.          (gnu packages disk)
  9.          (gnu packages admin)
  10.          (gnu packages linux)
  11.          (gnu packages glib)
  12.          (gnu packages gl)
  13.          (gnu packages libunwind)
  14.          (gnu packages nettle)
  15.          (gnu packages multiprecision)
  16.          (gnu packages mpd)
  17.          (gnu packages gnupg)
  18.          (gnu packages compression)
  19.          (gnu packages bootloaders))
  20.  
  21. (define u-boot-bananapi-m1
  22.  (make-u-boot-package "Bananapi-M1" "arm-linux-gnueabihf"))
  23.  
  24. (define u-boot-allwinner-bootloader
  25.  (@@ (gnu bootloader u-boot) u-boot-allwinner-bootloader))
  26.  
  27. (define u-boot-bananapi-m1-bootloader
  28.  (bootloader
  29.   (inherit u-boot-allwinner-booloader)
  30.   (package u-boot-bananapi-m1)))
  31.  
  32. (use-service-modules networking ssh)
  33.  
  34. (use-package-modules certs version-control wget screen ssh)
  35.  
  36. (operating-system
  37.  (host-name "GuixARM")
  38.  (timezone "Europe/Moscow")
  39.  (locale "en_US.utf8")
  40.  
  41.  ;; Mount disks
  42.  (file-systems
  43.   (cons* (file-system
  44.       (device "/dev/mmcblk0p1")
  45.           (mount-point "/")
  46.           (type "ext4"))
  47.          %base-file-systems))
  48.  
  49.  ;; Use UEFI
  50.  (bootloader (bootloader-configuration
  51.               (bootloader u-boot-bananapi-m1-bootloader)
  52.               (target "/dev/mmcblk0")))
  53.  
  54.  (initrd-modules (cons* "sd_mod"
  55.             "ahci_sunxi"
  56.             "sinxi"
  57.             "sinxi-cir"
  58.             "sinxi-ss"
  59.             "dwmac-sinxi"
  60.             "sinxi_wdt"
  61.             "sinxi_nand"
  62.             "nvmem_sinxi_sid"
  63.             "mmc"
  64.             "phy-rockchip-emmc"
  65.             "rtsx_pci_sdmmc"
  66.             "rtsx_usb_sdmmc"
  67.             "dw_mmc-exynos"
  68.             "dw_mmc"
  69.             "cb710-mmc"
  70.             "dw_mmc-pltfm"
  71.             "via-sdmmc"
  72.             "omap_hsmmc"
  73.             "dw_mmc-rockchip"
  74.             "armmmci"
  75.             "of_mmc_spi"
  76.             "wmt-sdmmc"
  77.             "sunxi-mmc"
  78.             "mmc_spi"
  79.  
  80.          %base-initrd-modules))
  81.  
  82.  ;; Use BIOS
  83.  ;;(bootloader (bootloader-configuration
  84.  ;;              (bootloader grub-bootloader)
  85.  ;;              ;; VM disk
  86.  ;;              (target "/dev/sda")))
  87.  
  88.  ;; Setup user
  89.  (users (cons (user-account
  90.            (name "user")
  91.            (comment "Hacker")
  92.            (group "users")
  93.            (supplementary-groups '("wheel" "netdev" "users" "audio" "video"))
  94.            (home-directory "/home/user"))
  95.               %base-user-accounts))
  96.  
  97.  ;; This is where we specify system-wide packages.
  98.  (packages (cons* nss-certs         ;for HTTPS access
  99.           bash
  100.           xorg-server
  101.           xrandr
  102.                   setxkbmap
  103.           xf86-input-libinput
  104.                   pavucontrol
  105.           openssh
  106.           lm-sensors
  107.           poppler
  108.           gnupg
  109.           pinentry
  110.           redshift
  111.           mpd
  112.           atool
  113.           htop
  114.           dosfstools
  115.                   wget
  116.                   unzip
  117.                   rxvt-unicode
  118.                   %base-packages))
  119.  
  120.  (services
  121.   (remove (lambda (service)
  122.         (eq? (service-kind service) screen-locker-service-type))
  123.       %desktop-services))
  124.  
  125.  ;; Allow resolution of '.local' host names with mDNS.
  126.  (name-service-switch %mdns-host-lookup-nss))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement