From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8sqZJiLE1GA+GQAAgWs5BA (envelope-from ) for ; Thu, 24 Jun 2021 19:42:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id sAekISLE1GB6DQAAbx9fmQ (envelope-from ) for ; Thu, 24 Jun 2021 17:42:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BDECB18670 for ; Thu, 24 Jun 2021 19:42:57 +0200 (CEST) Received: from localhost ([::1]:54734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwTNQ-0004wa-MF for larch@yhetil.org; Thu, 24 Jun 2021 13:42:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lwTN6-0004wN-5Z for guix-devel@gnu.org; Thu, 24 Jun 2021 13:42:36 -0400 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:38835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lwTN1-0004TN-S6 for guix-devel@gnu.org; Thu, 24 Jun 2021 13:42:35 -0400 Received: by mail-lf1-x12d.google.com with SMTP id r5so11706817lfr.5 for ; Thu, 24 Jun 2021 10:42:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=J6ETD4l+rYgfubi1XQgKISi2XLP2HBskM6zjA+d5tLw=; b=dlSLrEGaEsQ/EIKgJY/OqbxSQjbGkVAH046zoEIspPGgMu3pAMt0/BHKmzDKxzLOSf pV3q3YSZBAY2x4BopcLeD1tndeQlUIEtcLHuwfUdyDiY86WzYg6gX0a/rzT2JJcsl1tX 1iHet9x5+Q/YorozwTOVUbBecguxv8SCdMHdRGaKnOCh9r+sNEAAyAbz1nd6jseR9A+H hjrtCE2zoFV/L2YrZjgBa2w9DzcX5h0lxrNjkb+0r/U5Kuj2PMokVTMnFei9hKPfd6aw XpdHcj41BxhRyHvbqIT9yu3TBrOpXmnc1SlxcAJat8YoMT/uVCHRV77WrUeXiH0vpwZZ Qj5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=J6ETD4l+rYgfubi1XQgKISi2XLP2HBskM6zjA+d5tLw=; b=W8VgOWOqRU4evpzd5eX/3eWz3bxZ2Kgjdzo8ql7BAmrKu9Dy6t8ELrYZngn1lrhEkB B+vbberN/CmMJlgbxkC8PEdp4c1mAgbVsXZcX7Un0AFQsjssYUOxqGeXrKPdfBKCSMgP PAqsY50D5Ao19lonJFqLoExOv8XV+IXSVdceuJjpgi21QRjWgbjjGRh4nBpXiEe74ipE Jwpne6XAEhV0uq8i2Yuac2zmS+F8yOZ/RntZ2htPgQSMJKwVGe36V9CAxxL6LVUWb/kv aRt2piYODPuL+S0ol1TaNy9td+SRj1yEoGJDM8Jr1CZqqlndpPV0eL20mqCns/ta34XV jXOQ== X-Gm-Message-State: AOAM532PSVCqINh/jgzae0XOuLSL7LQ5d0PIaW0k95yU3xbk89RVWfz1 oKGA23VYrQWRBZcs51t3D0eX/XG/b47DDA== X-Google-Smtp-Source: ABdhPJy7ByAEJV8K77rj2JMeoHnsa/XEu2i/KUoTJZyzPcAJ4nlRVKhJIP+JV20Mj5DTC2vuxeSb/Q== X-Received: by 2002:a05:6512:e92:: with SMTP id bi18mr4678968lfb.386.1624556549578; Thu, 24 Jun 2021 10:42:29 -0700 (PDT) Received: from ixy ([109.252.117.164]) by smtp.gmail.com with ESMTPSA id a16sm332389ljk.106.2021.06.24.10.42.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 10:42:28 -0700 (PDT) From: Andrew Tropin To: jbranso@dismail.de, Xinglu Chen , Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Early feedback on Guix Home In-Reply-To: <4def90894bd34c6eefd8601232f24a8b@dismail.de> References: <87y2azr86k.fsf@yoctocell.xyz> <87tuloyb6n.fsf@gnu.org> <4def90894bd34c6eefd8601232f24a8b@dismail.de> Date: Thu, 24 Jun 2021 20:42:26 +0300 Message-ID: <87zgvfjh19.fsf@trop.in> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=2a00:1450:4864:20::12d; envelope-from=andrew@trop.in; helo=mail-lf1-x12d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624556578; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=J6ETD4l+rYgfubi1XQgKISi2XLP2HBskM6zjA+d5tLw=; b=iMbQy2ezVZFCvmwO5JtJMZ2rRsRSTryDHJfiWL+XU630CBeN7+Cv21e2ROK+OqxsaMsX4L w0wEVtBlgONsFGy+IW530dLZ74el4jiscrnNDrUpN1ZJJwvDJ+LSCS5wIgY6FPfsCqWa6A 6KypfHkvIJt+jvti2UKz/ZALMuWv/7vZR5IvgtJ5gaK50Maz9KLC4XjFRtKvSP+dubqhfH 7KCrC1Hy9CqYnejL+X5/KsTsNGSSTtIfSfyVfQoTfykEYM6ynptKW1GD3yqrjcSWoJ8Ps8 JxrWpGBXrBUtrjAY08GRKVhJp7QfFaDToAzOuH0m8QaWZc/QS5jKKP+ZdGueCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624556578; a=rsa-sha256; cv=none; b=b7Y4PTrFxWrMgm/w2XZiJA7y1VXJHBkBjdLXrNzjIHhF8jZpXGe4saTcsV/dBDF4D/VgTC ENJ3shhrPSjJDqGndnlg4fnyVQbDSGINKVxQ1kXaT55Eg1ryAYZBdD2uIRYXBK6XYmt5Ds D7HNDDTf/HNv+abdVpSyIPZJeQ2dswuWk6HzlHa3RB67XIpDhDC8UlD7MQ+3IyTUree8KU 1fQvXdqqjN1AQDbM+ea3PIWBBkeJv4CHW/P6ewbQ2WGediinnOpd/cJtQ/RX02SnmYX22U YBhcpQio2GoHCKpMJPnpSNr7e5WskYNDWnCU7q61EGSfkEfXO0JLjBZCA+MGkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=dlSLrEGa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.63 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=trop-in.20150623.gappssmtp.com header.s=20150623 header.b=dlSLrEGa; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: BDECB18670 X-Spam-Score: -2.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: kG5/9qP8YN59 jbranso@dismail.de writes: > June 24, 2021 8:14 AM, "Xinglu Chen" wrote: > >> On Wed, Jun 23 2021, Ludovic Court=C3=A8s wrote: >>=20 >> Alternatively, one can also use it as a channel: >>=20 >> (channel >> (name 'rde) >> (url "https://git.sr.ht/~abcdw/rde")) >> (introduction >> (make-channel-introduction >> "257cebd587b66e4d865b3537a9a88cccd7107c95" >> (openpgp-fingerprint >> "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0")))) > > Maybe I'm doing it wrong...my ~/.config/guix/channels.scm > > ;; Add variant packages to those Guix provides. > (append > (list > (channel > (name 'guix-packages) > (url "https://notabug.org/jbranso/guix-packages")) > (channel > (name 'rde) > (url "https://git.sr.ht/~abcdw/rde") > (introduction > (make-channel-introduction > "257cebd587b66e4d865b3537a9a88cccd7107c95" > (openpgp-fingerprint > "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0"))))) > %default-channels) > > $ guix pull > Updating channel 'guix-packages' from Git repository at > 'https://notabug.org/jbranso/guix-packages'... > Updating channel 'rde' from Git repository at 'https://git.sr.ht/~abcdw/r= de'... > Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.= org/git/guix.git'... > Authenticating channel 'guix', commits 9edb3f6 to 8553f00 (3 new commits)= ... > Building from these channels: > guix https://git.savannah.gnu.org/git/guix.git 8553f00 > rde https://git.sr.ht/~abcdw/rde 6d32c23 > guix-packageshttps://notabug.org/jbranso/guix-packages d4b6f35 > > $ guix build home.scm It should be `guix home build ./path/to/file.scm`. Also, make sure that before first run you've set proper GUILE_LOAD_PATH. (See https://sr.ht/~abcdw/rde/ Guix Home section, Option 2). It won't be needed, when Guix Home will be upstreamed, but for now it is necessary, if you want to use it from rde channel. > $ guix pull > > I suppose for now I will use Ludo's suggestion: > > git clone https://git.sr.ht/~abcdw/rde > guix git authenticate \ > "257cebd587b66e4d865b3537a9a88cccd7107c95" \ > "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0" \ > -k origin/keyring > ./pre-inst-env guix home reconfigure /path/to/home-config.scm > > Failed to execute process './pre-inst-env'. Reason: > exec: Exec format error > The file './pre-inst-env' is marked as an executable but could not be run= by the operating system. It should work if you have a POSIX-compatible shell, but I also added shebang to be sure that /bin/sh used. Do git pull inside repository dir and try again. `./pre-inst-env guix home --help` Let me know if it still fails. > > Eventually I'll be able to get it to work! But I do like the concept! > > #+BEGIN_SRC scheme > (use-modules (gnu home) > (gnu home-services) > (gnu home-services ssh) > (gnu home-services shells) > (gnu home-services files) > (gnu services) > (gnu packages admin) > (guix gexp) > (my-home packages) ;; %defines %my-packages > ) > > > (home-environment > (home-directory "/home/joshua") home-directory, as well as symlink-name and symlink-path are now depricated, I'll update the manual soon. > ;; (symlink-name ".guix-home-env") > (packages %my-packages) > (services > (list > (service home-bash-service-type > (home-bash-configuration > (guix-defaults? #t) > (bash-profile '("\ export HISTFILE=3D$XDG_CACHE_HOME/.bash_h= istory;\n" > "if [[ -z $DISPLAY ]] && [[ $(tty) =3D /dev/= tty3 ]]; then\n" > "# this may fix a bug that I have with termi= te confusing backspace as space in guix environment\n" > "# export TERM=3Dlinux\n" > "# shepherd -c /home/joshua/.config/shepherd= /init.scm &\n" > "export MOZ_ENABLE_WAYLAND=3D1;\n" > "export GUIX_PACKAGE_PATH=3D/home/joshua/pro= g/gnu/guix/guix-packages/;\n" > "export XDG_DATA_DIRS=3D/var/lib/flatpak/exp= orts/share:/home/joshua/.local/share/flatpak/exports/share:$XDG_DATA_DIRS;\= n" > "exec dbus-run-session sway;\n" > "fi" > )) > (bashrc > '("alias lamora=3D'ssh -p 63355 lamora'")))) > > (simple-service 'termite-config > home-files-service-type > (list `("config/termite/config" > ,(local-file "config-files/termite-config" > "config")))) > > (simple-service 'sway-config > home-files-service-type > (list `("config/sway/config" > ,(local-file "config-files/sway-config" > "config")))) > > (simple-service 'sway-config > home-files-service-type > (list `("config/sway/status.sh" > ,(local-file "config-files/sway-status.sh" > "status.sh")))) home-files-service-type accepts a list, so you do not need to create so many service) >=20=20=20=20 > ))) > > #+END_SRC