From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:203:b4db::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oE2mLwvsyGETWQAAgWs5BA (envelope-from ) for ; Sun, 26 Dec 2021 23:26:19 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2GT/LAvsyGGWfgAA9RJhRA (envelope-from ) for ; Sun, 26 Dec 2021 23:26:19 +0100 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 73A8327B62 for ; Sun, 26 Dec 2021 23:26:19 +0100 (CET) Received: from localhost ([::1]:51052 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1by6-0006eB-9v for larch@yhetil.org; Sun, 26 Dec 2021 17:26:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46256) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1bxr-0006dP-12 for bug-guix@gnu.org; Sun, 26 Dec 2021 17:26:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58441) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1bxq-0004u2-OI for bug-guix@gnu.org; Sun, 26 Dec 2021 17:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1bxq-0002oK-IY for bug-guix@gnu.org; Sun, 26 Dec 2021 17:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52807: Guix home executables are not executable Resent-From: "Nick Zalutskiy" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Dec 2021 22:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52807 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "Aleksandr Vityazev" Received: via spool by 52807-submit@debbugs.gnu.org id=B52807.164055753810763 (code B ref 52807); Sun, 26 Dec 2021 22:26:02 +0000 Received: (at 52807) by debbugs.gnu.org; 26 Dec 2021 22:25:38 +0000 Received: from localhost ([127.0.0.1]:41754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1bxS-0002nX-8T for submit@debbugs.gnu.org; Sun, 26 Dec 2021 17:25:38 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34419) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1bxP-0002nH-UQ for 52807@debbugs.gnu.org; Sun, 26 Dec 2021 17:25:36 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CCBCB5C0095; Sun, 26 Dec 2021 17:25:28 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute4.internal (MEProxy); Sun, 26 Dec 2021 17:25:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=const.fun; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=uktgS2rcftTls275mXWPScA7UqSE16G yAcgdJQ9ya9Y=; b=Ph2SqfKLYadEGXpB+ppnUVOSCr3DBMorSJnwxFrAoZCxLeh VYXzUYI5KpSG7XA96rwU8ryb3+4RNmMNwsUNRCITFt9S5U/7NnUgVYipA5Q1KJL9 o2Gu1R048JXcM5o59+0mnl8bxXjKu5sTcjje8W9O0O4GcK1lG/KpueLcXCnamhGW +qdnL6g/AkDLvqm+zaCtqUQRACScrfWPLzz7qU6ownUhZHJQQmWkF5BnHo2g8Fg3 2BGrFu4n3oqXxUyTnHYnjTiU6Aj7w45o1on1fqjGeR0mm3eyotNoLik2zks+32yD Nzgn959pFU+8RwKO3ep2CVqzDlFicpM8j2xd5kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=uktgS2 rcftTls275mXWPScA7UqSE16GyAcgdJQ9ya9Y=; b=mZC69qYyESvhDE/Afa7I72 ty5tqOhQaKtd/tZJtOoaasXmzBWnUx6yjI9XJlmJl/PzbYlfgY7H95bawEy4OWkU /Sp7ybE0ZhjAVA1diJ96npGifAeiyLmkvuesG++0RLAb87wvuzGS6o0+51NWmZZ3 WPYc0w/oUDvFpNjwVhLoO2VWY60z8NytD3+o6Mp9/ZRXgKv+sSLNsUkFbcTHbqUh 73qncg4AsNEd9hed8Bsd2/MWCcg73GdIl25253/xQ1zFCWfwMKt6p2nXVMdAp3AG pHYSlxVDGyR1cfU/w/3VfJi/zmV10L1lqgV5vIm91cgsoG8VygSkFKMddAbkWTRA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddugedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdfpihgt khcukggrlhhuthhskhhihidfuceonhhitghksegtohhnshhtrdhfuhhnqeenucggtffrrg htthgvrhhnpeehlefgteeitdffjefhffeiieffjeetieffhfeileehteekjeffhfejgfef keehffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hnihgtkhestghonhhsthdrfhhunh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 816D7AC0E8C; Sun, 26 Dec 2021 17:25:28 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b Mime-Version: 1.0 Message-Id: <78b0a8f3-d49a-47ec-b46a-bfaaedcb2f0d@www.fastmail.com> In-Reply-To: <87fsqfjb2n.fsf@posteo.org> References: <66a55c86-8caf-489f-8fce-1a65e67a6780@www.fastmail.com> <87fsqfjb2n.fsf@posteo.org> Date: Sun, 26 Dec 2021 17:25:08 -0500 From: "Nick Zalutskiy" Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 52807@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640557579; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=uktgS2rcftTls275mXWPScA7UqSE16GyAcgdJQ9ya9Y=; b=Ioe53hPvx28B8jhBdpvgRgENy/LYASoR9D+k2vEwXgd4xwMmlwuR0SShMorTF/oMKqIj16 li6g2Oc1qxgVReVQ0DQk0UWDrRdeJR/ubiOz+zjBDcy2BnxG5UNF37Y9ncNcKlWVB422CA 78ezUdXyDdByKHJjnpJvY9gcOx3e1Cs9a3VHcvKDD0Jal6+2KSlo6xKkZMXC07MNtiVTOx eUwE7ISWTc1RJcqfVu6qfUUfeRW6QzL4pylFlN3iuYAuCsmkg+zgTEyApOtx8WiW1aimJm Ed4g7TbvVEyyVTDY6aKw1ZN8qCySybTVQR0UL4ZlfWo2ugU1s2Tg3f4ER6/BQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640557579; a=rsa-sha256; cv=none; b=jP0dcd9w9tXZaaP/5A2MJjA1/ia26eq11hqvtQYon+U2w6Tx9fNaDTMoKRJnQ5nrrzIS2n 78QQFv96unVmVpDaXXrq80NrEpwg7l6WUtFn5PHpXGxp5Sn8jI0oV2F513UgdGWA16IBpy 9RxyrteexKKEvmAky26x6+yAkOYzgQbNQ49GHa+RS3b5YSyf2sRHNMbMRb6r1ad3pjMa5r /PFhcmhgxRzSDp+BUUx/ZQ5aDXePAYbYS01JWRL9tKFTjEHzyO/yJpkDyi74lT0STRr+Rq XAGpLZ6uGC5VqzEEY3RlY9fNYwqyHF4ZdkRxXwfTKvJAIMn4gnJf+ndc8B/Jkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=const.fun header.s=fm1 header.b=Ph2SqfKL; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=mZC69qYy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.16 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=const.fun header.s=fm1 header.b=Ph2SqfKL; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm1 header.b=mZC69qYy; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 73A8327B62 X-Spam-Score: -1.16 X-Migadu-Scanner: scn1.migadu.com X-TUID: FCtKLZCrYG5s Indeed I missed this in the manual. Thank you! I was trying to figure out how to close this... no luck. -Nick On Sun, Dec 26, 2021, at 4:44 PM, Aleksandr Vityazev wrote: > Hi, > > On 2021-12-26, 12:03 -0500, "Nick Zalutskiy" wrote: > >> I'd like to use `guix home` to symlink an executable into my home directory. >> >> Following simple configuration stored at `~/.dotfiles/home-configuration.scm` >> >> (use-modules >> (gnu home) >> (gnu packages) >> (gnu home services) >> (gnu services) >> (guix gexp) >> (gnu home services shells)) >> >> (home-environment >> (services >> (list (service >> home-bash-service-type >> (home-bash-configuration >> (guix-defaults? #t))) >> (simple-service 'my-files >> home-files-service-type >> `(("run" ,(local-file "run"))))))) >> >> `~/.dotfiles/run` is an executable file, after home reconfigure a `~/.run` symlink is created, >> however the file it is pointing to does _not_ have the execute bit set. >> >> As a result, when I try to execute `~/.run` file I get a "Permission denied" error. >> >> Thank you, >> >> -Nick >> > In the Guix manual you can find the following information about > local-file: > > --8<---------------cut here---------------start------------->8--- > -- Scheme Procedure: local-file FILE [NAME] [#:recursive? #f] > [#:select? (const #t)] > > When RECURSIVE? is true, the contents of FILE are added > recursively; if FILE designates a flat file and RECURSIVE? is true, > its contents are added, and its permission bits are kept. > --8<---------------cut here---------------end--------------->8--- > > So you can just do this: > > #+begin_src scheme > (simple-service 'my-files > home-files-service-type > `(("run" ,(local-file "run" #:recursive? #t)))) > #+end_src > > -- > Best regards, > Aleksandr Vityazev