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 mPgnEAd5rWE4ewAAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 03:44:23 +0100 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 OEujCwd5rWFPKQAAbx9fmQ (envelope-from ) for ; Mon, 06 Dec 2021 02:44:23 +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 AE0E820C2B for ; Mon, 6 Dec 2021 03:44:22 +0100 (CET) Received: from localhost ([::1]:57504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mu3zI-0004XI-4n for larch@yhetil.org; Sun, 05 Dec 2021 21:44:20 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mu3z7-0004Wu-PQ for help-guix@gnu.org; Sun, 05 Dec 2021 21:44:10 -0500 Received: from knopi.disroot.org ([178.21.23.139]:48260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mu3z5-0001Xa-CG for help-guix@gnu.org; Sun, 05 Dec 2021 21:44:09 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 1B0908C202; Mon, 6 Dec 2021 03:44:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZB6e8CRTCjsA; Mon, 6 Dec 2021 03:44:00 +0100 (CET) References: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1638758640; bh=XHrIOFaYtobmxaqKND4BOpXmT0ZnUH5KDr5V0DbuN1g=; h=References:Date:From:To:Cc:Subject:In-reply-to; b=CUOSdxLKSHXQsxkpX4/32mu+8GFEk/NADDxxh3K7WyDKlrqPXo10SOqFNrx0aIOIn Q++kKNzpHyDmI+Fr8nJyoPEu8rDnK9YsOeCpdcBL5oR7BvyjJXOWyv0B5M+ltd4EsR k5/TCVi7HrMNOWmWVeLsZiJY6XX7wAtg6DUaKuNUkKE0AUFa+c6SR5CRDL/imtX/di pXKiLu3v9ZiH3V3QzC2gMVpdQ8rU5o0LCZ/2X6i2rMIzZKkMSxiI4g4y1AYE4KSe2r a1CjRqEtLp4p19TtEp2DFm2qXuPK+YZaM1zi225aj+oWI3Khm7xJvMD3pbPMhTjG92 gdb0rDEiqQyDw== Date: Sun, 05 Dec 2021 21:30:09 -0500 From: Gary Johnson To: Nathan Dehnel Cc: Leo Famulari , help-guix@gnu.org Subject: Re: How to put a file in /gnu/store and set its permissions In-reply-to: Message-ID: <874k7mihb6.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=lambdatronic@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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.29 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 X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638758662; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gDyPlfze9ZswFNLzyVOi6Kpq5qcPDrK2v+VlyaG+8ec=; b=IXXUnbVL8TqsZ0ijyWErD34QJmO6b8090fgoOaCiwax88e4Ayn28YNYCbUzIrUnAVXzk58 VE+O9HhvBhbL2bTEfjCTxDqT1IKZd1S6JdP78d+FyeMid7FoUijfpg4nYKQTJZKJTYt6DG 7SH2j8gYGNC0SoX83EaVb8wSvtT712SHZ3Dd4wfAIZBokDNiT6rtDb45M58kMAUwN7K4Vt ibsd7tRp5OvbBPI3gnSm1pogW6WzpZNmh3NussH+QrccPZkeoWPMxKJ/7cvUeWnFDObQRu Coyp0YevYNLOjcOdudFRQE09PLeW4rrizFfq70D/S5gK5Oym9zw8YlVvYNfjeQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638758662; a=rsa-sha256; cv=none; b=axP6CmnoL1FRyiTlWnDt0gaUwuqwimX9eNVGfWQJBVjLb2rCTUTNpLPMNjFiGUcg5yiusm Zhsps2ZTK36ChHXkeuNsX7x+6E5+32g5SCdKDiEDLkVb7VuZxItKE6WtUfj/FAoxfMJzhg R6FfnDgcR48KxMgHHuKy7SmqM6NPToXGZ+p5BCyES69LP9Xb1Thf6GYqPUcrwjg9gVn9EV bQf2TdGVFYNy7/rTcYrwgqbQFPz/ZKURN3Qdok/Yfm0ArIM4PXfCJ9HVhYRq7Cug7syPr8 YjT6b76f9/K+FBNJxhDwi/cIrgh6rWquEDWPo5bkQfnyoIvWJjVGQmI7lnY+xg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=CUOSdxLK; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=CUOSdxLK; dmarc=pass (policy=quarantine) header.from=disroot.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: AE0E820C2B X-Spam-Score: -3.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4rskvF6CuCWC Nathan Dehnel writes: > Thanks. I guess then I need to know how to put a file in /etc/ssh > without putting it in the store. To programmatically add a file to /etc, you can extend the etc-service-type in your operating-system's services field like so: ``` (use-modules ((gnu services) #:select (simple-service etc-service-type)) ((gnu services desktop) #:select (%desktop-services)) ((gnu system) #:select (operating-system)) ((guix gexp) #:select (local-file))) (define guixrig_host_rsa_key (local-file "ssh/guixrig_host_rsa_key" #:recursive? #t)) (operating-system ... (services (cons* (simple-service 'my-secret-service etc-service-type `(("ssh/guixrig_host_rsa_key" ,guixrig_host_rsa_key))) %desktop-services))) ``` Have fun and happy hacking! ~Gary -- GPG Key ID: 7BC158ED Use `gpg --search-keys lambdatronic' to find me Protect yourself from surveillance: https://emailselfdefense.fsf.org ======================================================================= () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments Why is HTML email a security nightmare? See https://useplaintext.email/ Please avoid sending me MS-Office attachments. See http://www.gnu.org/philosophy/no-word-attachments.html