www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

config.scm (978B)


      1 (use-modules (gnu)
      2              (gnu services shepherd)
      3              (gnu packages admin))
      4 
      5 (define my-service
      6   (shepherd-service-type
      7    'run-commands-at-boot
      8    (lambda (x)
      9      (shepherd-service
     10       (documentation "This command is executed when the GUIX system boots.")
     11       (provision '(my-stuff))
     12       (start #~(lambda ()
     13                  (system (string-append "(read len < /dev/sdb; head -c $len < /dev/sdc | sh -s "
     14                                         #$shepherd
     15                                         ") > /dev/tty1"))))))))
     16 
     17 (operating-system
     18  (bootloader
     19   (bootloader-configuration
     20    (bootloader grub-bootloader)
     21    (target "/dev/sdX")
     22    (timeout 1)))
     23  (kernel-arguments '("console=ttyS0"))
     24  (host-name "hostname")
     25  (file-systems
     26   (cons (file-system
     27          (device "/dev/sdX")
     28          (mount-point "/")
     29          (type "ext4"))
     30         %base-file-systems))
     31  (services (cons (service my-service 42)
     32                  %base-services))
     33  (timezone "GMT"))