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 AOhaMLayDWRtvgAASxT56A (envelope-from ) for ; Sun, 12 Mar 2023 12:08:38 +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 KPldMLayDWR5rAAA9RJhRA (envelope-from ) for ; Sun, 12 Mar 2023 12:08:38 +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 69173CE7B for ; Sun, 12 Mar 2023 12:08:38 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678619318; 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=XaFzfUnClBf0EyMyiebUi/f54dEWzZJglT/Q5n/KaC4=; b=juWEwW/5EvHlKyJJjOSCegip43s542t4gYKW172J73EZrC3r81zhbWdRhmQlBfh/lgn0JO iWkEkuneWYSJTlKQvZHqqcCmJ40NlAbnaxuEmW+9RYVEkk3Eb+9AGbVKa234VfQgXgdyIX Jvk+fVFjtOMoVfCWA8iJQ+A+Htes4RuvslggTL+A/1QCA9Q91uRetq0RZ5eC3JrXTe8vUh TKdhfHmvJrWshbZgny1lwacmfiTOYFJCPA9KPo3uoHkaazfvm4E6gcuCyuRgX/VpmC8Cim pNvnTeVILe9fnL63aofBkpC6P9odL7/sF8eB9DSZM+qqo/pgWo4l5kNbmzLm7A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678619318; a=rsa-sha256; cv=none; b=QJLIxczpIhPS3jW13+e0RDEYKB4w9+hiBVOHkr8478jrofgZQrrHiscrPR9vIdIlTsbnjC jm29TbUzgQPmkjBhP2BCEaYQcO/OdUNR6lq8Dkpl8VwfSP3wJE/rlLk8gTdQ8U4K09yuGK Bm0h4M9H550e0uy35w/dd3ChAqOBvh3ZzoW7sWcOA6MtnAnIl4TB8g+HjiQMhs1lan8l+z NTgsyBnD+QfYr0ecLlSdnzEp6mFCdwC2TvnB1pC8LJwJWWYlrk9a7gF/RcN6LBxJPhcAIF vckdfIQJ7zLfXTaBfGOeHSipRr3ep8R+VTysO8HxzE0zqV2gkDZ8VjzdByAkDQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbJYo-0005zT-Jo; Sun, 12 Mar 2023 07:08:19 -0400 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 1pbJYm-0005zB-C7 for help-guix@gnu.org; Sun, 12 Mar 2023 07:08:16 -0400 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 1pbJYa-0005e8-8Z for help-guix@gnu.org; Sun, 12 Mar 2023 07:08:14 -0400 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 C916D7F8531F; Sun, 12 Mar 2023 12:07:27 +0100 (CET) References: <87a60jdx0m.fsf@colimite.fr> <298ACF68-632F-4B47-8B91-B785573E1123@disroot.org> User-agent: mu4e 1.8.13; emacs 28.2 From: Sergiu Ivanov To: SeerLite Cc: help-guix@gnu.org, Gottfried Subject: Re: open config.scm with sudo and gedit or emacs Date: Sun, 12 Mar 2023 12:00:36 +0100 In-reply-to: <298ACF68-632F-4B47-8B91-B785573E1123@disroot.org> Message-ID: <875yb6rzww.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: X-Migadu-Queue-Id: 69173CE7B X-Spam-Score: -3.51 X-Migadu-Spam-Score: -3.51 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: 2fCkFDbEtN0t Hi SeerLite, SeerLite [2023-03-12T00:42:42+0100]: > On March 11, 2023 2:05:01 PM GMT-03:00, Sergiu Ivanov wrote: >>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 > > Why not use the configuration from ~/.config directly? Why copy at all? I do > > sudo guix system reconfigure ~/.config/guix/system-config.scm You are right, it's probably even better. I prefer keeping my system config in /etc/config.scm because this is what everyone seems to do, but that's probably a bad reason, supported by unreliable data :D - Sergiu