From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6ApNLuS4DGSSIwEASxT56A (envelope-from ) for ; Sat, 11 Mar 2023 18:22:44 +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 sNxxLuS4DGS8HwEAauVa8A (envelope-from ) for ; Sat, 11 Mar 2023 18:22:44 +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 4E4F2314A7 for ; Sat, 11 Mar 2023 18:22:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pb2v9-0000Gy-7w; Sat, 11 Mar 2023 12:22:15 -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 1pb2v7-0000Gn-RW for help-guix@gnu.org; Sat, 11 Mar 2023 12:22:13 -0500 Received: from marvid.fr ([163.172.81.107] helo=courriel.marvid.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pb2v6-0002hT-7W for help-guix@gnu.org; Sat, 11 Mar 2023 12:22:13 -0500 Received: from localhost (schwifty.marvid.fr [51.159.4.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by sahkopoika (Postfix) with ESMTPSA id AE41B7F7CEFC; Sat, 11 Mar 2023 18:21:29 +0100 (CET) References: User-agent: mu4e 1.8.13; emacs 28.2 From: Sergiu Ivanov To: Gottfried Cc: help-guix@gnu.org Subject: Re: open config.scm with sudo and gedit or emacs Date: Sat, 11 Mar 2023 18:05:01 +0100 In-reply-to: Message-ID: <87a60jdx0m.fsf@colimite.fr> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=163.172.81.107; envelope-from=sivanov@colimite.fr; helo=courriel.marvid.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FORGED_SPF_HELO=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=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=none; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678555364; a=rsa-sha256; cv=none; b=ojuFy5orKxkDFHGWRT6XDD0DIlaATx7S9lMMVAtfd3I4esKCW1HbvwVh25J6gHNNEGibcM TSPe8kqys6kKzYQdcrIOEQdD5L8ATqgf/OVsCA/KgiJZAv/nJtEqZcDW77bwxuo0izBl0P Tegmb8Zr0SxkJWiqcF89kssTGxCaUQtZ1lrJFCcCjyPBrenuBp6qtVHYtwUnTquEJGaY/R qvWxmNnjLKcjXNmAlw7xhQwXyhP6mCXWTKveVTPwDQx/cHWb7bTkd1EX5y6kpDruhxX5HI yXDDbhrcJQI4S/FWcnN5bcLkVHgxfD6CRrEUXOkCTwKuzzyUbGKxGmfd6ZjGsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678555364; 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; bh=EfXmYP7wjiMgsib328FW3eTQrGqJqCONQCod8wxsJ/c=; b=nmi1/WZgzAr8C+2vRHPhoDMudJEd16QKz0A9ZeERpDo5oxGGQjOIEgH/URQOcDoxj2Mx2j gsSdiQeFAkwV9IexiJ+IxGhBgepODnGRlDsqQAaih7C6o5ENHfzhdb/nFPh/wc3GTplDIw Cnbz+WK0a74Iz4NB3bwVbIP9BxKXwbsGtgghgpa1lHRX8MiDsOo++xFDQrAYzpfv6MsGiJ yktpLvFhxTLVpTDT7ckxUwahDPh5IFm1eJ9jYFLVEAhf1q1T0QIyZ6VgSYYUiFRXcHl0MJ m+wAs8MPbKIFGuhzkCOagFaaE8uddhaVCj3z12PUZunchFMZKlI+OXfukhUwCw== X-Migadu-Spam-Score: -3.00 X-Spam-Score: -3.00 X-Migadu-Queue-Id: 4E4F2314A7 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none X-TUID: klyKCP+Tg0jE Hi Gottfried, Gottfried [2023-03-11T11:33:33+0100]: > > because of my limited knowledge > when opening my config.scm 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.scm. More concretely, I store my system configuration in ~/.config/guix/system-config.scm. I edit it with Emacs, as I would edit any other normal file. When I am done editing, I do what essentially is sudo cp ~/.config/guix/system-config.scm /etc/config.scm I use Emacs's Dired mode + Tramp to actually do the copy, but that's inessential to the strategy. One advantage of this approach is that you can version your local file using Git or some other version control system (VCS). Even without VCS, editing a local copy of your system configuration may prevent some silly mistakes. - Sergiu