From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: wpa-supplicant service configuration. Guile is hard Date: Fri, 05 Apr 2019 18:38:22 +0200 Message-ID: <871s2gxv9d.fsf@elephly.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:38173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCd3i-0007gU-BE for help-guix@gnu.org; Sat, 06 Apr 2019 00:36:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCct4-0002Fe-Sj for help-guix@gnu.org; Sat, 06 Apr 2019 00:25:03 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hCct4-0002EC-4I for help-guix@gnu.org; Sat, 06 Apr 2019 00:25:02 -0400 In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: znavko@tutanota.com Cc: Help Guix znavko@tutanota.com writes: > Hello! I have several questions about wpa-supplicant + dhcpcd services. > > First of all I do not want to use networkmanager and I usually get Intern= et working manually with this: > # cat startnet > #!/bin/sh > #connect to wi-fi through wpa_supplicant > herd stop wpa-supplicant > rfkill unblock wifi > wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf > sleep 2 > dhclient -v wlp2s0 Why do you do this all manually instead of using wpa-supplicant-service-type and dhcp-client-service-type? Your configuration looks =E2=80=A6 adventurous. Here are some recommendati= ons: * don=E2=80=99t nest modify-services. Nothing good will come of this. It = only serves to confuse you. =E2=80=9Cmodify-services=E2=80=9D can modify more= than one service at once. * don=E2=80=99t leave parentheses on lines all by themselves. They get lon= ely. * don=E2=80=99t use dhcpd-service-type unless you want to run a DHCP server. Use dhcp-client-service-type for the DHCP *client*. * you don=E2=80=99t need to add wpa-supplicant to the list of globally inst= alled packages. The service is enough. * maybe try fixing the indentation (Emacs can do this with M-q) =E2=80=94 i= t=E2=80=99s very hard to understand the configuration when the indentation tries hard to mislead you. -- Ricardo