From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 3Ir5HhwSDWSavAAASxT56A (envelope-from ) for ; Sun, 12 Mar 2023 00:43:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0BNEHhwSDWSzRwEA9RJhRA (envelope-from ) for ; Sun, 12 Mar 2023 00:43:24 +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 5D0D1627 for ; Sun, 12 Mar 2023 00:43:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pb8rY-0007MZ-8i; Sat, 11 Mar 2023 18:42:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pb8rW-0007MP-Nz for help-guix@gnu.org; Sat, 11 Mar 2023 18:42:55 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pb8rU-00078m-Ni for help-guix@gnu.org; Sat, 11 Mar 2023 18:42:54 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4FF4144555; Sun, 12 Mar 2023 00:42:49 +0100 (CET) X-Virus-Scanned: SPAM Filter 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 aM82E5Ri6E4M; Sun, 12 Mar 2023 00:42:48 +0100 (CET) Date: Sat, 11 Mar 2023 20:42:42 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678578168; bh=KhbTYnjXIgzWzrBhU7IL1fnPCMTxq+VB70LObL5BpVE=; h=Date:From:To:Subject:In-Reply-To:References; b=ii5i8F+OsTA+6vuLV5msCD7AI5SBylFpJPHgUrVv1TPLvljoSWaVFj55RiA4adieB pJo+eH9uHuoLhoHUEtQYKpHlRbOqVebxS+rgCIqtQXGRVuAnHcKq6T3f79Mj7vgw47 AmkLGlEqq00DilzxpC+2QiiHndFx9f8pwpodpBHymfjD0VMVrWvx5GQHqEa5dmic48 76uUXw6ainz4Cd6O0FculTWvwkaKaCVnw4XxzccQEnn4s9+9NjsUMitm9lBLZW3uLr hCX9oL/e2Wef3uOhOU6ryZonVFwiDyj0UcU1CyopS+83Wa+r3v5bMC2QKwYohHVE5t jU5Ldfjgl64zw== From: SeerLite To: help-guix@gnu.org, Sergiu Ivanov , Gottfried Subject: Re: open config.scm with sudo and gedit or emacs In-Reply-To: <87a60jdx0m.fsf@colimite.fr> References: <87a60jdx0m.fsf@colimite.fr> Message-ID: <298ACF68-632F-4B47-8B91-B785573E1123@disroot.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=178.21.23.139; envelope-from=seerlite@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, 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=ii5i8F+O; 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"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678578203; a=rsa-sha256; cv=none; b=b/dvVhr5POzzi7QIQC6eKwDa/1KKqeurnXfqrtoXrrfl8Lg+XyPcLrFMWb9AzLhAGf3JjJ wnAClI8vEsK54VLW+fbe4nYq/p56Ich8P7/6e67Bt5nlhy4qI+F98eTWr1EqYQQdsPR8F+ eiFrg7hfMS83HAoDIpihGhfLDdKvRoUXPFcc8Y0Cr3NjP5G/G2VWi5tvWclKl0Dv2M5w3Y 4GR/Ye/eO8ko8mj4ANaemag6HEWypjneorTkbJTFoTkXn8DUdMy59BlpX/lR6SAv6nn2xD Vg3mzseLPAlVQts/Ozc0CR2LkTBC5IMojTPSAhfR0PiNkvSu4a1+OSZqwpvHog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678578203; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=P6aRkwozKUXoqH/JjD8v4/PMwShBqAMcMRnA3MdKDJY=; b=AOWaumVkkYe7soNk92e4ozAPrNMsi/bidOHGi6Vmc91iAXgIVqA4IA0rJMf+6l18VAMUAU 23IB/jhiHDViI9eLDupm0z0NX5KIA6jRfB4831HrFVWav8Z4B3whpCJPPvjHnPacKAQANO W/k0ySjN+me9vOLGT089Tn1G0+F9ibtEj9gQCTz0wikaxz5Wbv6DR+b30xAOrluBxZt2y2 Y1fD90+qdGJ4/Tbkn8ttXeLwwQse/0oS9j2KWTNm/Eni8lnhJgCKQ4qhBaRWA65WleFD/0 Kx8QxtbnjeWwY/ib0C8Tm9wcI88ZflrXgHx+kGLZ8x3DdGv+Tu2vMrg41xcTFw== X-Migadu-Spam-Score: -6.43 X-Spam-Score: -6.43 X-Migadu-Queue-Id: 5D0D1627 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=ii5i8F+O; 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"; dmarc=pass (policy=reject) header.from=disroot.org X-TUID: iucqdAZYncy+ On March 11, 2023 2:05:01 PM GMT-03:00, Sergiu Ivanov wrote: >Hi Gottfried, > >Gottfried [2023-03-11T11:33:33+0100]: >> >> because of my limited knowledge >> when opening my config=2Escm file with sudo >> I can do it only with nano > >The strategy I personally prefer is to edit a file in my home directory >and then sudo cp to /etc/config=2Escm=2E > >More concretely, I store my system configuration in >~/=2Econfig/guix/system-config=2Escm=2E I edit it with Emacs, as I would = edit >any other normal file=2E When I am done editing, I do what essentially is > >sudo cp ~/=2Econfig/guix/system-config=2Escm /etc/config=2Escm Hi! Why not use the configuration from ~/=2Econfig directly? Why copy at all? = I do sudo guix system reconfigure ~/=2Econfig/guix/system-config=2Escm SeerLite