From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cCGRLS3iyGFERQAAgWs5BA (envelope-from ) for ; Sun, 26 Dec 2021 22:44:13 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id AMgwKi3iyGEPCQEAauVa8A (envelope-from ) for ; Sun, 26 Dec 2021 22:44:13 +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 82D67C776 for ; Sun, 26 Dec 2021 22:44:13 +0100 (CET) Received: from localhost ([::1]:34444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1bJM-0008Vy-O5 for larch@yhetil.org; Sun, 26 Dec 2021 16:44:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1bJC-0008Vm-Or for bug-guix@gnu.org; Sun, 26 Dec 2021 16:44:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58426) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1bJC-0008L5-FP for bug-guix@gnu.org; Sun, 26 Dec 2021 16:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1bJC-0001cC-EK for bug-guix@gnu.org; Sun, 26 Dec 2021 16:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52807: Guix home executables are not executable Resent-From: Aleksandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Dec 2021 21:44: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: "Nick Zalutskiy" Received: via spool by 52807-submit@debbugs.gnu.org id=B52807.16405550416194 (code B ref 52807); Sun, 26 Dec 2021 21:44:02 +0000 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 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-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=1640555053; 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=LOS4vuafhQGQGMOcVW00xprRqxgUMDzNhZ8NHiDSJ/g=; b=QJc8G0PRrzlB9IC9XU9rjj4WoN1JvPnAe6qwaFTHJE9bfk9wx3syh/bD8qi4IrjCh7fY1b dFOk68wiWjYPhXrCa9pqcC5EtXquBSAsR1aSEjB4Kufg8SRnOJAxDWtfuwR/eaACUmwoh/ qm34O7GfpuQ/f6T6j/wU2f4g30+1iGF66K8lK3Zod8n5PIlKTKsX/xGVND6hCd9hwRRI2F xGG5VezLFjE1WC2Mx5XErlt189+I6Q4QQDIqVxjPAix/8P/bRq44aLhy+WqFywsD2dZsB9 PQUKHulg8RESi1eLb5pWagM7dKJbecwLcnm5Eu2WNxD+IVfQRQJJ8R82V+WkGg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640555053; a=rsa-sha256; cv=none; b=JZ9B6dtR00Wz6XSueFQ917/5s6t1b6NsQQmxjZVuuqZA5rLFWdTurFqpyw/sXDnAzbkLYO 49MzVUm5FKDYy4B4oYqpYMMAkFmb609ecMP5WLlUmBx7f5ARxmhvzBWuLNJMjKpTLSi0Df qS/htYe+dypj1ntNgRjctvsr4dMtB9XaC/uf9gCwi/TgnR5L7cj99PIE9DiAFwoFBraX4F GwvPE14lrMilkALjrLoFh+1kAxfQg/Ohd2eHS170Ui2V7WNeYwL16JpIY1J3fIPdK2/EfG EGcpP4IWw87m4OAh2PjrKivxua/Z6WSf8cJJOsArrAHUZEOEnpUhrTD2a6nBRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=hfMuv9Wo; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=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: -2.97 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=hfMuv9Wo; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=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: 82D67C776 X-Spam-Score: -2.97 X-Migadu-Scanner: scn0.migadu.com X-TUID: pD6MgABeC8Tt 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