unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: David Craven <david@craven.ch>
To: Efraim Flashner <efraim@flashner.co.il>
Cc: 24993@debbugs.gnu.org, Christopher Howard <christopher@alaskasi.com>
Subject: bug#24993: System installer grows brittle with time
Date: Tue, 29 Nov 2016 10:17:38 +0100	[thread overview]
Message-ID: <CAL1_imn-07k4zTQQLTON328kWyzXPy_WhB1+fDx6wOU0GFJVMg@mail.gmail.com> (raw)
In-Reply-To: <20161129084406.GF2509@macbook42.flashner.co.il>

I have a nice one too. How to run guixsd on any hardware :)

(use-modules (gnu)
             (gnu system nss)
             (guix build-system trivial)
             (guix download)
             (guix git-download)
             (guix packages))
(use-service-modules base networking)
(use-package-modules certs linux)

(define-public linux-firmware
  (let ((commit "21e216f591bed97ec1adcda0e8b4b28ddf065433"))
    (package
      (name "linux-firmware")
      (version (string-append "2016.11.27-" (string-take commit 7)))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                        (url (string-append
                              "https://github.com/wkennington/linux-firmware"))
                        (commit commit)))
                (sha256
                 (base32
                  "0iiayy00zr3fk8xfi8i9vrbpg7r59n5vfzx9x7cpx6gjaja8czxa"))))
      (build-system trivial-build-system)
      (arguments
       `(#:modules ((guix build utils))
         #:builder
         (begin
           (use-modules (guix build utils))

           (let* ((source   (assoc-ref %build-inputs "source"))
                  (out      (assoc-ref %outputs "out"))
                  (firmware (string-append out "/lib/firmware")))
             (mkdir-p firmware)
             (copy-recursively source firmware)))))
      (home-page "https://github.com/wkennington/linux-firmware")
      (synopsis "Linux firmware")
      (description "Linux firmware.")
      (license #f))))

(define-public linux
  (package
    (inherit linux-libre)
    (version "4.8.11")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "https://cdn.kernel.org/pub/linux/kernel/v4.x/"
                    "linux-" version ".tar.xz"))
              (sha256
               (base32
                "03w90vfjfcya38mcp1njasa5c67za203sgp9n3w52gms13s443yc"))))))

(operating-system
  (host-name "system76")
  (timezone "Europe/Zurich")
  (locale "en_US.UTF-8")

  (kernel linux)
  (firmware (list linux-firmware))

  (bootloader (grub-configuration (device "/dev/sda")))

  (file-systems (cons (file-system
                        (device "my-root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4"))
                      %base-file-systems))

  (users (cons (user-account
                (name "dvc")
                (comment "David Craven")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/dvc"))
               %base-user-accounts))

  (packages (cons* nss-certs
                   %base-packages))

  (services (cons* (dhcp-client-service)
                   %base-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))

  reply	other threads:[~2016-11-29  9:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-22 22:25 bug#24993: Documentation: 'guix pull' needed during SD installation Christopher Howard
2016-11-23  4:46 ` Leo Famulari
2016-11-23 16:46   ` Christopher Howard
2016-11-23 17:25     ` Christopher Howard
2016-11-23 20:29       ` Leo Famulari
2016-11-28 17:45         ` Christopher Howard
2016-11-29  2:33           ` bug#24993: System installer grows brittle with time Leo Famulari
2016-11-29  8:44             ` Efraim Flashner
2016-11-29  9:17               ` David Craven [this message]
2016-11-29 14:44                 ` Ludovic Courtès
2016-11-29 14:42             ` Ludovic Courtès
2017-11-12 20:30         ` bug#24993: System installer grows brittle as substitutes for the release disappear Ludovic Courtès
2017-11-12 20:49           ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL1_imn-07k4zTQQLTON328kWyzXPy_WhB1+fDx6wOU0GFJVMg@mail.gmail.com \
    --to=david@craven.ch \
    --cc=24993@debbugs.gnu.org \
    --cc=christopher@alaskasi.com \
    --cc=efraim@flashner.co.il \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).