From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GC2xMTCY52N+GQAAbAwnHQ (envelope-from ) for ; Sat, 11 Feb 2023 14:29:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QDK2MTCY52MM1wAA9RJhRA (envelope-from ) for ; Sat, 11 Feb 2023 14:29:20 +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 7889C13636 for ; Sat, 11 Feb 2023 14:29:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQpvt-0004b3-0f; Sat, 11 Feb 2023 08:28:49 -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 1pQcxI-0001T5-Or for help-guix@gnu.org; Fri, 10 Feb 2023 18:37:24 -0500 Received: from smtpm1.myservices.hosting ([185.26.105.232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQcxG-00017m-UX for help-guix@gnu.org; Fri, 10 Feb 2023 18:37:24 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm1.myservices.hosting (Postfix) with ESMTP id F01382089E; Sat, 11 Feb 2023 00:37:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 9B1C980096; Sat, 11 Feb 2023 00:37:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Pslg3b2G0D9K; Sat, 11 Feb 2023 00:37:16 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id B244280093; Sat, 11 Feb 2023 00:37:16 +0100 (CET) Message-ID: <1b8743f9-ed66-c764-23ab-359a098eb8ff@makinata.eu> Date: Fri, 10 Feb 2023 23:37:16 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: Examples of local-host-entries or hosts-service-type? Content-Language: en-US To: Sergiu Ivanov References: <87k00pi15e.fsf@colimite.fr> Cc: help-guix From: Bruno Victal In-Reply-To: <87k00pi15e.fsf@colimite.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.26.105.232; envelope-from=mirai@makinata.eu; helo=smtpm1.myservices.hosting X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.149, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 11 Feb 2023 08:28:47 -0500 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676122160; a=rsa-sha256; cv=none; b=oSs6QtxCzDvVh+x4Y6KiYeiWKhdMuW2kxJlAHKxIBHaw8Y4fmRqni7YbrhS68qDYAWEgfx hltviT8XxFZzS7fZUNkeVfHAy1SN4OqTQM2DoE0qIDtguCj+3GXuNF/6/6y5vnNm8cZFJk lSij0psauzyC2kz73p+NW0Ll3HIgYHgiI7zUqLdJLNz93WL3AdRKyBirGIYGeVRkNfFWww DlnjeLbQ8NEnG7ffouFEk3iDh1BKqKh7EXiEXpAi8wR5ywqNfxuItSwt14R9IDdm7d5xm0 Tiy6Lpk3y/SV9VwSkPR0iyfpIeZTxT3Kj5LHAU/paDuakNwpPUyR/nGkpjAhyA== 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676122160; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nkoFRx2CSuyj2UsRZbjckpobBJQVM3FVN9nQbxjkCKM=; b=h4DzHfiKQ7qG20wrZ+yWpeFry9U54susqWUjGnmr/esN9Uqk4B1G1kdfFuDi/ozWi8DQMZ p1Z8ZwoEl+tTBDemAMQvl2mblKZqmBI3b6lyWIwC0Sp/h5Ccr3fizCsYkuOB+ec/lBSeEB mMiluMYI55niwH61sezJuHp8RDZMZl0L/AgRuzEMq4CbL6MKSlSEU7jNm2CVPhvgTPAjl7 4eT91IFcRF4o9FqOZRZ2ldkptn4kSip997vRaKnuMvHD2oDcbffl+RCTS44GIsizMJRXM/ GgjJz5P1ktcRkIel2uJvhWIUTRvGrnn6W8FQTn104F+0oC1tOmvIX4v1VxWfLQ== X-Migadu-Spam-Score: -1.91 X-Spam-Score: -1.91 X-Migadu-Queue-Id: 7889C13636 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" X-Migadu-Scanner: scn1.migadu.com X-TUID: hVsOhTlJVaVP On 2023-02-10 22:40, Sergiu Ivanov wrote: > Hello Guix, > > I am reconfiguring my system right now, and guix system reconfigure > /etc/config.scm tells me this: > > /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead > /etc/config.scm:126:27: warning: 'local-host-aliases' is deprecated, use 'local-host-entries' instead > /etc/config.scm:124:14: warning: the 'hosts-file' field is deprecated, please use 'hosts-service-type' instead > > For the record, here are the lines guix system reconfigure is > complaining about: > > (hosts-file (plain-file "hosts" > (string-append > (local-host-aliases host-name) > "some.ip.address.1 machine1\n" > "some.other.ip.address machine2\n"))) > > I spent quite some time trying to find some examples of using > local-host-entries or hosts-service-type, but I don't seem to find any > mention of these. Quite on the contrary, the Guix manual actually seems > to advice declarations similar to those which I have in my > /etc/config.scm. > > Could someone point me to an example of how I should update > my configuration? > > - > Sergiu > See 'hosts-service-type' under Service Reference . Cheers, Bruno