From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: =?utf-8?Q?It=E2=80=99s?= building! Date: Sun, 22 Jan 2017 13:10:27 +0000 Message-ID: <8760l7w88s.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <871svvrddj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cVHta-0004FG-Nw for guix-devel@gnu.org; Sun, 22 Jan 2017 08:09:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cVHtX-0000BD-HK for guix-devel@gnu.org; Sun, 22 Jan 2017 08:09:22 -0500 Received: from latitanza.investici.org ([82.94.249.234]:32596) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cVHtX-0000Am-2O for guix-devel@gnu.org; Sun, 22 Jan 2017 08:09:19 -0500 In-Reply-To: <871svvrddj.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Maxim Cournoyer Cc: guix-devel@gnu.org Maxim Cournoyer writes: > Hello Guix! > > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> Hello Guix! >> >> Good news: the new machine, bayfront.guixsd.org, is building Guix mast= er >> for x86_64/i686 with Cuirass=E2=81=B0! > > Nice! Thanks to everyone implicated! > >> >> You can get substitutes from https://bayfront.guixsd.org; just authori= ze >> its key (with =E2=80=98guix archive --authorize=E2=80=99), which is: >> >> (public-key=20 >> (ecc=20 >> (curve Ed25519) >> (q #8D156F295D24B0D9A86FA5741A840FF2D24F60F7B6C4134814AD55625971B3= 94#))) >> > > [...] > > If anyone else would like to use the new bayfront substitute server by > declaring it in their config.scm you can consult the config I'm using > below, which is based on the lightweight desktop config base. > > The important bits added are (guix-store) and (gnu services base) in th= e > topmost (use-modules ...) sexp, as well as in the modified (services ..= .) one. > > Thanks for those who offered guidance on how to do this in the #guix ir= c > channel! > > (use-modules (gnu) > (gnu system nss) > (gnu services) > (guix store) ;for %default-substitute-urls > (gnu services base)) ;for %default-authorized-guix-keys > (use-service-modules desktop) > (use-package-modules wm ratpoison certs) > > (operating-system > (host-name "apteryx") > (timezone "America/Los_Angeles") > (locale "en_US.UTF-8") > > ;; Assuming /dev/sdX is the target hard disk, and "my-root" > ;; is the label of the target root file system. > (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 "maxim") > (comment "Maxim Cournoyer") > (group "users") > (supplementary-groups '("wheel" "netdev" > "audio" "video")) > (home-directory "/home/maxim")) > %base-user-accounts)) > > ;; Add a bunch of window managers; we can choose one at > ;; the log-in screen with F1. > (packages (cons* ratpoison ; i3-wm xmonad ;window managers > nss-certs ;for HTTPS access > %base-packages)) > > ;; Use the "desktop" services, which include the X11 > ;; log-in service, networking with Wicd, and more. > (services > (cons* > ;; Add the new bayfront server to the list of substitute-urls. > (modify-services %desktop-services > (guix-service-type config =3D> > (guix-configuration > (inherit config) > (substitute-urls > (cons* "https://bayfront.guixsd.org" > %default-substitute-urls)) > (authorized-keys > (cons* (plain-file "bayfront.guixsd.org.pub" > (string-append "(public-key (ecc (curve Ed25519) " > "(q #8D156F295D24B0D9A86FA5741A840FF2" > "D24F60F7B6C4134814AD55625971B394#)))")) > %default-authorized-guix-keys))))))) > =20 > ;; Allow resolution of '.local' host names with mDNS. > (name-service-switch %mdns-host-lookup-nss)) I think when you only use desktop-services, it works. For me it fails, I tried to adopt this to my %desktop-services-sans-ntpd but I haven't found the right way to make use of it: (define %desktop-services-sans-ntpd ;; List of services typically useful for a "desktop" use case. (cons* (slim-service) (screen-locker-service slock) (screen-locker-service xlockmore "xlock") (avahi-service) (wicd-service) (udisks-service) (upower-service) (colord-service) (geoclue-service) (polkit-service) (elogind-service) (dbus-service) (guix-service-type config =3D> (guix-configuration) (inherit config) (substitute-urls (cons* "https://bayfront.guixsd.org" %default-substitute-urls)) (authorized-keys (cons* (plain-file "bayfront.guixsd.org.pub" (string-append "(public-key (ecc (curve Ed25519) " "(q #8D156F295D24B0D9A86FA5741A840FF2" "D24F60F7B6C4134814AD55625971B394#)))"= )) %default-authorized-guix-keys))) %base-services)) Identation broken because this happens when you copy from emacs with X into terminal emacs. Obviously this fails because "config" is not known. Just modifying the service the way you did it doesn't work for me. I'm open for ideas on how to erase ntp from the services in a better way, I'm running a replacement for ntpd. Later this %desktop-services-sans-ntpd gets used in (services). --=20 =E2=99=A5=E2=92=B6 ng0 -- https://www.inventati.org/patternsinthechaos/