Advertisement
Guest User

config.scm bananapi

a guest
Jan 28th, 2020
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 2.19 KB | None | 0 0
  1. (use-modules (gnu)
  2.          (gnu bootloader extlinux)
  3.          (gnu bootloader u-boot)
  4.          (gnu bootloader)
  5.          (gnu build bootloader)
  6.          (gnu system)
  7.          (gnu packages bootloaders)
  8.          (gnu packages bash)
  9.          (gnu packages linux)
  10.          (gnu packages gnupg)
  11.          (gnu packages compression)
  12.          (nongnu packages linux)
  13.          (nongnu system linux-initrd)
  14.          (gnu packages)
  15.              (guix derivations))
  16.  
  17. (define u-boot-bananapi-m1
  18.  (make-u-boot-package "Bananapi-M1" "arm-linux-gnueabihf"))
  19.  
  20. (define u-boot-allwinner-bootloader
  21.  (@@ (gnu bootloader u-boot) u-boot-allwinner-bootloader))
  22.  
  23. (define u-boot-bananapi-m1-bootloader
  24.  (bootloader
  25.   (inherit u-boot-allwinner-bootloader)
  26.   (package u-boot-bananapi-m1)))
  27.  
  28. (use-service-modules networking ssh)
  29.  
  30. (use-package-modules certs wget screen ssh)
  31.  
  32. (operating-system
  33.  (host-name "GuixARM")
  34.  (timezone "Europe/Moscow")
  35.  (locale "en_US.utf8")
  36.  
  37. ;; (kernel linux)
  38. ;; (initrd microcode-initrd)
  39. ;; (firmware (list linux-firmware))
  40.  
  41.  (file-systems
  42.   (cons* (file-system
  43.       (device "/dev/mmcblk0p1")
  44.           (mount-point "/")
  45.           (type "ext4"))
  46.          %base-file-systems))
  47.  
  48.  (bootloader (bootloader-configuration
  49.               (bootloader u-boot-bananapi-m1-bootloader)
  50.               (target "/dev/mmcblk0")))
  51.  
  52.  (initrd-modules (cons* "sd_mod"
  53.             "mmc_spi"
  54.             "sunxi-mmc"
  55.             "wmt-sdmmc"
  56.             "of_mmc_spi"
  57.             "armmmci"
  58.             "dw_mmc-rockchip"
  59.             "omap_hsmmc"
  60.             "via-sdmmc"
  61.             "dw_mmc-pltfm"
  62.             "cb710-mmc"
  63.             "dw_mmc"
  64.             "dw_mmc-exynos"
  65.             "rtsx_usb_sdmmc"
  66.             "rtsx_pci_sdmmc"
  67.             "phy-rockchip-emmc"
  68.             "mmc"
  69.             "ahci_sunxi"
  70.             "sunxi"
  71.             "ahci_sunxi"
  72.             "sunxi-cir"
  73.             "sunxi-ss"
  74.             "dwmac-sunxi"
  75.             "sunxi_wdt"
  76.             "sunxi_nand"
  77.             "nvmem_sunxi_sid"
  78.  
  79.          %base-initrd-modules))
  80.  
  81.  (users (cons (user-account
  82.            (name "user")
  83.            (comment "Hacker")
  84.            (group "users")
  85.            (supplementary-groups '("wheel" "netdev" "users" "audio" "video"))
  86.            (home-directory "/home/user"))
  87.               %base-user-accounts))
  88.  
  89.  (packages (cons* nss-certs
  90.           bash
  91.           openssh
  92.           lm-sensors
  93.           gnupg
  94.           wget
  95.           unzip
  96.        %base-packages))
  97.  
  98.  (name-service-switch %mdns-host-lookup-nss))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement