From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GEMDAS+tbWGiOQAAgWs5BA (envelope-from ) for ; Mon, 18 Oct 2021 19:21:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4Ko8OC6tbWFxaQAAB5/wlQ (envelope-from ) for ; Mon, 18 Oct 2021 17:21:50 +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 4E66E33978 for ; Mon, 18 Oct 2021 19:21:50 +0200 (CEST) Received: from localhost ([::1]:34886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcWKb-0005r5-38 for larch@yhetil.org; Mon, 18 Oct 2021 13:21:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcWKK-0005nn-B9 for help-guix@gnu.org; Mon, 18 Oct 2021 13:21:32 -0400 Received: from mout02.posteo.de ([185.67.36.66]:47783) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcWKH-0000XW-J0 for help-guix@gnu.org; Mon, 18 Oct 2021 13:21:32 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 9FDB1240105 for ; Mon, 18 Oct 2021 19:21:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1634577686; bh=RDNOVc4vDvZju0p8Yg75MYrHHNh6s2UdQbyRVt0Ckjo=; h=From:To:Subject:Date:From; b=XVuwf0Fes+BcmbL7W7of7IQcMV5BB/t4flhXV9cTpQEnsCpo0C9VJcWz3Ysk7fzTU dYeQXiqW24HsuGptBlVCHquKI1muTuY/KYe+FC9Jd8GcXzqtnYTgL4If6eZpMyXBHS /0kbkIwK4o1qPZOKE0idZVwlkDhK/GRdvK9g62mNaHUTzgJ0XI1IfCkhL5OBDDrPbr MGCmvN7mkYsfL+cZS9RfM6bRukOwJ9ppMWDrjPU3VttNCmauU0/t2BEUNtbImfGKDJ +6vWxq9wdjANKTjD1lWPcYbjjc7+7usz4Y2ZxkrHsKr8BU8RZmWHX6XC19ZTRponZ4 jOV9R8BnQSugw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HY3ZF4myYz9rxB; Mon, 18 Oct 2021 19:21:25 +0200 (CEST) From: Fredrik Salomonsson To: Roland Everaert , "help-guix@gnu.org" Subject: Re: Guix home on foreign distribution In-Reply-To: References: Date: Mon, 18 Oct 2021 17:21:23 +0000 Message-ID: <87o87mz1t8.fsf@d2.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=plattfot@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634577710; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=snbdS30C96pSL0OPzP1Jft6saRAeYim2MkywlgKqayc=; b=XzO8ikLZIpn3OiRab5MEKxdMG087Iae4zM464r2o/XGayh28DQvPUl5Aj2Elpbe/0o9UPf 0uCZMCGWArHbcoAVpIqcdnSxiGu36eFj62o6HLjIi5EvXSs7iqtPopZjehtaRDbKHeE/NC jJIUObUlsH7v35tOiCNEYj7P3xFZfzclgpGZeFpE933tGwQMcFcabNyxqpF9MnS1v3YPt6 tB7AgVtdx+6svcOTNWZZ3ShhA/rrFWv8+qmD9PBQkMiq5WircwDdwcJ1hamacl79vghz9q 8RvTRFIi6KLAFSDjewR92ijUBBNY3hgY1rG7fFYbPCul5pquaxX1SVB+TpGDEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634577710; a=rsa-sha256; cv=none; b=Y6FyvPGqny3bfmXxSqGDW0/Vf49GgSUEke+Mfp4XTY7dywtQedMCH5Gfzb/Upsefo4MZUt fbQZ5i+NogSs4hUXRQXpQzx5jEuhKwYu9o1H6woC+osH1AdvmRwVVf7z14qik1xuoSkHva V06Q0z8eHYKQQFLwBLnWj/6LxhzNU4QUm1Aho9t0hMoFoOghruCca2XO1maSNOdsr1Gp1m XfrgAdeuY/ZsZsrdj++UMUWJLyAXGqx4EPnyheuGWyq5TYpnhfSDoRSoo+tUccSPOd9vHM kGA9z0qNgoYJGry5e0bhqRuwyMd47D7Q3YbPSCD6kURbyP5mCJM4g2ahmkIy6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XVuwf0Fe; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=XVuwf0Fe; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 4E66E33978 X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: Y4ZQkAqDeRuf Hi Roland, Roland Everaert via writes: > Hello, > > Is there anything related to file and directory permissions to be set on foreign distrubution for guix home to work? No special permissions are needed for guix home to work. I'm using it on a foregin distro and it works (still have some minor papercuts but unrelated to this). > I know that feature is still pretty young and some parts are still in > dev, yet I have tried it on my fedora 34 system and got the following > error, which could be related to permission and file ownership: > > --------------------------------------------------- > > building /gnu/store/564yvkjmdp5bvdijk8w0cwl7ym5q6sdr-bash_profile.drv... > Backtrace: > 8 (primitive-load "/gnu/store/lp5wrbb8qi9lc3hyji3dxwjzgg8?") > In ice-9/ports.scm: > 463:17 7 (call-with-output-file _ _ #:binary _ #:encoding _) > In ice-9/eval.scm: > 159:9 6 (_ #(#(#) #)) > 163:9 5 (_ #(#(#) #)) > 155:9 4 (_ #(#(#) #)) > 159:9 3 (_ #(#(#) #)) > In ice-9/boot-9.scm: > 152:2 2 (with-fluid* _ _ _) > In ice-9/ports.scm: > 440:11 1 (call-with-input-file "export HISTFILE=$HOME/.bash_his?" ?) > In unknown file: > 0 (open-file "export HISTFILE=$HOME/.bash_history" "r" # # ?) > > ERROR: In procedure open-file: > In procedure open-file: No such file or directory: "export HISTFILE=$HOME/.bash_history" > builder for `/gnu/store/564yvkjmdp5bvdijk8w0cwl7ym5q6sdr-bash_profile.drv' failed with exit code 1 > build of /gnu/store/564yvkjmdp5bvdijk8w0cwl7ym5q6sdr-bash_profile.drv failed > View build log at '/var/log/guix/drvs/56/4yvkjmdp5bvdijk8w0cwl7ym5q6sdr-bash_profile.drv.bz2'. > cannot build derivation `/gnu/store/ic73gayslzsj0k2snp61z5aaiwd6l5ck-files.drv': 1 dependencies couldn't be built > applying 2 grafts for /gnu/store/g2wlw2kxszxclfq1pvxyfbs7q15xl1vf-python-future-0.18.2.drv ... > cannot build derivation `/gnu/store/gam06nxwyb6kcqs3pxwh1v8p627ps0df-home.drv': 1 dependencies couldn't be built > guix home: error: build of `/gnu/store/gam06nxwyb6kcqs3pxwh1v8p627ps0df-home.drv' failed > > ----------------------------------------------- > > The guix home configuration file I use: > > --------------------------------------------- > > (use-modules (gnu home) > (gnu home services) > (gnu home services shells) > (gnu services) > (gnu packages admin) > (gnu packages python-xyz) > (gnu packages password-utils) > (gnu packages dunst) > (gnu packages disk) > (gnu packages backup) > (gnu packages libreoffice) > (gnu packages guile) > (gnu packages xdisorg) > (gnu packages tls) > (gnu packages vpn) > (guix gexp)) > > (home-environment > (packages (list htop glances password-store dunst ranger restic hunspell > ;; hunspell-dict-fr hunspell-dict-en > ;; guile > neofetch xdotool openssl openvpn xscreensaver)) > (services > (list > (service home-bash-service-type > (home-bash-configuration > (guix-defaults? #t) > (bash-profile (list "export HISTFILE=$HOME/.bash_history")))) > > (simple-service 'test-config > home-files-service-type > (list `("config/test.conf" > ,(plain-file "tmp-file.txt" > "the content of ~/.config/test.conf"))))))) > ------------------------------------- I think this is an issue due to the api changed for the home-bash-service-type and the docs hasn't been updated. See this email thread [0]. Try changing: (bash-profile (list "export HISTFILE=$HOME/.bash_history")) to (bash-profile (list (plain-file "bash_profile" "export HISTFILE=$HOME/.bash_history"))) [0] https://lists.gnu.org/archive/html/help-guix/2021-10/msg00045.html I hope that helps. -- s/Fred[re]+i[ck]+/Fredrik/g