From unknown Fri Aug 15 04:03:00 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52807 <52807@debbugs.gnu.org> To: bug#52807 <52807@debbugs.gnu.org> Subject: Status: Guix home executables are not executable Reply-To: bug#52807 <52807@debbugs.gnu.org> Date: Fri, 15 Aug 2025 11:03:00 +0000 retitle 52807 Guix home executables are not executable reassign 52807 guix submitter 52807 "Nick Zalutskiy" severity 52807 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 26 12:17:30 2021 Received: (at submit) by debbugs.gnu.org; 26 Dec 2021 17:17:30 +0000 Received: from localhost ([127.0.0.1]:41435 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1X9G-0003xt-AJ for submit@debbugs.gnu.org; Sun, 26 Dec 2021 12:17:30 -0500 Received: from lists.gnu.org ([209.51.188.17]:58286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1WwB-0003Z9-0R for submit@debbugs.gnu.org; Sun, 26 Dec 2021 12:03:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1WwA-0007FL-RA for bug-guix@gnu.org; Sun, 26 Dec 2021 12:03:58 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1Ww8-0002EP-Ut for bug-guix@gnu.org; Sun, 26 Dec 2021 12:03:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D3B1C5C0077 for ; Sun, 26 Dec 2021 12:03:51 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute4.internal (MEProxy); Sun, 26 Dec 2021 12:03:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=const.fun; h= mime-version:message-id:date:from:to:subject:content-type; s= fm1; bh=DYhaUS0+JSpl1WonAsuMW2K4andVlR/6X5l9Pg5hZsQ=; b=O5uISw+h pvXUA4djYy+m7tnxLC58d/qx9Qy3rvepc21qhyHOSiBg8/laXn13tL8vvi9wjMK5 Kaw8RmG32bY/UjfBBNNSTYx/9KAtkGL+76j074EKBS8HLaBya9DSxsr+yk3VwAFl 58WmnZATQEeWIsSb+ep99eqGgpccThGM9pB3Tndx7h2nnTmOX6M0Pl1NNS72K+ge gBlO7LaalE1r9da4wv9S3RN84z56lwmmh3Dx1oGyvxFPuidLRO2q3rD3Nto1fdL2 1sTGLKYBwQIbtSdxP97BcxQ7I3Hg+xhEtWa7S1HiEONqjQQOe0Mf05U/vuKULign 3+T8CGxA83O86g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=DYhaUS0+JSpl1WonAsuMW2K4andVl R/6X5l9Pg5hZsQ=; b=H9g+IvhpjlA1DPw9x/kFHh0wMyJKnmvJ0e2PW7fA531SQ NWwlTiw8L8VFoMthLghYFTmAUR15K5nXK9ecZCd5CrsXEiYtZ1jAAibeB9dZPl5s ycIvXhJQy/1ieJ90eFSTbFq3CjqxJ2w/ni1JAECx3AXBgnYzWPkfETznC2xNJQgT 0fD0KJdFyAaz2ctDjt2Qe0krbOkXme1bfDzwa5o5p+H67V3ay8yOY3QL+txvsO0i 3uhtaoyU1y8JTs/tBnFfgx+ln8ze+S5g/ibC4j9ceFRdlx5XwvsRT2+PVfr0K1Qk vK/ql+ThdqdOJ5q9xCmEmMEGurqIEU545+KcNE/Xw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddugedgieduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsegrtderre erredtnecuhfhrohhmpedfpfhitghkucgkrghluhhtshhkihihfdcuoehnihgtkhestgho nhhsthdrfhhunheqnecuggftrfgrthhtvghrnhepheehhefgffelgeelkeffuddutdeftd eigeffleetvdegfedvleekueeuffekgfeknecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepnhhitghksegtohhnshhtrdhfuhhn X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 8F46EAC03DB; Sun, 26 Dec 2021 12:03:51 -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: <66a55c86-8caf-489f-8fce-1a65e67a6780@www.fastmail.com> Date: Sun, 26 Dec 2021 12:03:30 -0500 From: "Nick Zalutskiy" To: bug-guix@gnu.org Subject: Guix home executables are not executable Content-Type: multipart/alternative; boundary=db6156de0d0a4a24ac0b53720a887374 Received-SPF: pass client-ip=66.111.4.27; envelope-from=nick@const.fun; helo=out3-smtp.messagingengine.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 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, FROM_SUSPICIOUS_NTLD=0.498, FROM_SUSPICIOUS_NTLD_FP=0.001, HTML_MESSAGE=0.001, PDS_OTHER_BAD_TLD=1.997, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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-t [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: const.fun (fun)] 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] 0.0 HTML_MESSAGE BODY: HTML included in message -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.5 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 Dec 2021 12:17:29 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) --db6156de0d0a4a24ac0b53720a887374 Content-Type: text/plain 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 --db6156de0d0a4a24ac0b53720a887374 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
I'd like to use= `guix home` to symlink an executable into my home directory.
=

Following simple configuration stored at `~/.dotfile= s/home-configuration.scm`

(use-modules
  (gnu home)
&nbs= p; (gnu packages)
  (gnu home services)
  (gnu services)
  (guix gexp)
&n= bsp; (gnu home services shells))

(home-envi= ronment
  (services
    = (list (service
       &= nbsp;    home-bash-service-type
  = ;          (home-bash-confi= guration
        &= nbsp; (guix-defaults? #t)))
     = (simple-service 'my-files
     &= nbsp;        home-files-service-type<= br>
         &nbs= p;    `(("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 "Permissi= on denied" error.

Thank you,
=
-Nick

--db6156de0d0a4a24ac0b53720a887374-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 26 16:44:01 2021 Received: (at 52807) by debbugs.gnu.org; 26 Dec 2021 21:44:01 +0000 Received: from localhost ([127.0.0.1]:41739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1bJB-0001bq-8P for submit@debbugs.gnu.org; Sun, 26 Dec 2021 16:44:01 -0500 Received: from mout02.posteo.de ([185.67.36.66]:38259) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1bJ8-0001bX-Nj for 52807@debbugs.gnu.org; Sun, 26 Dec 2021 16:43:59 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 51248240103 for <52807@debbugs.gnu.org>; Sun, 26 Dec 2021 22:43:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1640555032; bh=9bM/yuBGc1nPclkeoQOP2dPYcJuOSqisAsjsX11Wgqc=; h=From:To:Cc:Subject:Date:From; b=hfMuv9Wovn5CumWjkyBKzZO+S6dhbSQ4RI4/JDKndngrP3H9SttSeLiTjVqPjVoil 30uCv1vFeZvc5FoOhoqYJF0TlV/yic9dFmQzdSvtbYAENvikLYy8BrTQ0W201Va6To jXl7k0YyjrQ62yk+U8pFKLPSzq8mVdNqDdxoW7KsgurUdXr52uz6yK1OjVvcBxMMoO oQslD6YaM04RCgyZAjBmRgHFt3IfjrgYAbOMSKJJyI5tBH6aEod6E3xJnc7oCa2h67 uSBQ05+m9jf35RzTS3sN2y55/1tVFTrpRbGctJ2ISIg2oZGBXG15fupuYDRC/vxzjo gXFZ0SxDP04kg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JMZ7B63Gcz6tmL; Sun, 26 Dec 2021 22:43:50 +0100 (CET) From: Aleksandr Vityazev To: "Nick Zalutskiy" Subject: Re: bug#52807: Guix home executables are not executable References: <66a55c86-8caf-489f-8fce-1a65e67a6780@www.fastmail.com> Date: Sun, 26 Dec 2021 21:44:16 +0000 In-Reply-To: <66a55c86-8caf-489f-8fce-1a65e67a6780@www.fastmail.com> (Nick Zalutskiy's message of "Sun, 26 Dec 2021 12:03:30 -0500") Message-ID: <87fsqfjb2n.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 52807 Cc: 52807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 26 17:25:38 2021 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" To: "Aleksandr Vityazev" Subject: Re: bug#52807: Guix home executables are not executable Content-Type: text/plain X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Indeed I missed this in the manual. Thank you! I was trying to figure out how to close this... no luck. -Nick Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: const.fun (fun)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [66.111.4.26 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [66.111.4.26 listed in wl.mailspike.net] 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 52807 Cc: 52807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Indeed I missed this in the manual. Thank you! I was trying to figure out how to close this... no luck. -Nick Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [66.111.4.26 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [66.111.4.26 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: const.fun (fun)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 27 03:48:30 2021 Received: (at 52807-done) by debbugs.gnu.org; 27 Dec 2021 08:48:30 +0000 Received: from localhost ([127.0.0.1]:42150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1lgE-0004Sa-1k for submit@debbugs.gnu.org; Mon, 27 Dec 2021 03:48:30 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:48722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1lgB-0004SO-5C for 52807-done@debbugs.gnu.org; Mon, 27 Dec 2021 03:48:29 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id bLoR260024UW6Th01LoR40; Mon, 27 Dec 2021 09:48:25 +0100 Message-ID: Subject: Re: bug#52807: Guix home executables are not executable From: Maxime Devos To: Nick Zalutskiy , Aleksandr Vityazev Date: Mon, 27 Dec 2021 08:48:24 +0000 In-Reply-To: <78b0a8f3-d49a-47ec-b46a-bfaaedcb2f0d@www.fastmail.com> References: <66a55c86-8caf-489f-8fce-1a65e67a6780@www.fastmail.com> <87fsqfjb2n.fsf@posteo.org> <78b0a8f3-d49a-47ec-b46a-bfaaedcb2f0d@www.fastmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1640594905; bh=Kr9aDf5/MJi3YbM9c4oXpd5NP2RZ/gLUtE0rd3usV94=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=HeWtX2BljIVAFu/305JcBPi+LumTJD/Qy3zW2QdGBMuF7N9RqpW8/eKZccVUI2I/G w3YmFet94UBECdsOwL50WzzLajGapwVrvg3z/QgO/BID0UXMucDyBzGkpbidqo2Qc5 dmGhwDmG2qHKzmIWBz4A+O6l3N1I0RNvvk1/tYRozby0UWRiB0rTw0UNqr0l/F5hCI 0UBqRuzMFiJZkUvp238ByY1RCitr9Ab5IGW9Ym135yDGgK/HGisyDeuFn6tP1281JM Hcr/uCP+AsH7XuKhhSFBZZySIt8qIWZK1uSff9oZ6pEnmNxeu2LtxE1ivyaMWoWDfs glN9wTeabelKQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52807-done Cc: 52807-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Nick Zalutskiy schreef op zo 26-12-2021 om 17:25 [-0500]: > [...] > I was trying to figure out how to close this... no luck. https://debbugs.gnu.org/Developer.html has instructions on how to close, reopen and tag bugs. Greetings (and closing), Maxime. From unknown Fri Aug 15 04:03:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 24 Jan 2022 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator