From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko Subject: Re: %desktop-services #:select service alsa-service-type - unbound variable Date: Thu, 20 Sep 2018 17:07:08 +0000 Message-ID: References: <87fty4xj5x.fsf@ambrevar.xyz> Reply-To: znavko Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g32QB-0004R3-CR for help-guix@gnu.org; Thu, 20 Sep 2018 13:07:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g32Q7-0003C4-DF for help-guix@gnu.org; Thu, 20 Sep 2018 13:07:19 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:37818) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g32Q6-0003Ad-Vz for help-guix@gnu.org; Thu, 20 Sep 2018 13:07:15 -0400 In-Reply-To: <87fty4xj5x.fsf@ambrevar.xyz> 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: Pierre Neidhardt Cc: "help-guix\\@gnu.org" Thank you for your response, Pierre Neidhardt! I tried NetworkManager on GuixSD and have no troubles with it. But I dislik= e NM cause it stores wifi password as it is, but wpa_supplicant saves hash = only. Of course, I want delete NetworkManager cause I want to control netwo= rk by myself without such a monster. Further I will configure dnsmasq and I= know NM pretty cool linked with it, but no. As it is now, I tried to move config to /etc/wpa_supplicant/wpa_supplicant.= conf and reboot. So the service wpa-supplicant was running # herd status wpa-supplicant Status of wpa-supplicant: It is started. Running value is 324. It is enabled. Provides (wpa-supplicant). Requires (user-processes dbus-system loopback). Conflicts with (). Will be respawned. But I could not connect to network running `dhclient -v wlp2s0` so I think = I do not know how get wpa-supplicant service to use my config by default. Your piece of code grews like this: # cat /etc/config.scm ... (services (cons* (xfce-desktop-service) (remove (lambda (service) (eq? (service-kind service) network-manager-service-ty= pe)) %desktop-services) As I can understand guix will compile entire system with such config.scm fr= om sources, cause such configuration is not presented in GuixSD servers, am= I right? This construction is hard understandable for me. https://www.scheme.com/tsp= l4/start.html#./start:h5 did not help this time. I want also to delete polk= itd, avahi, cups, but I have troubles from start learning Scheme: I tried 2 Scheme compilers: MIT-Scheme and Chicken, but their behavior is q= uite different even with 'print' function. MIT-Scheme gives errors on `(pri= nt x)` and `print x`. http://0x0.st/sxhA.png But (lambda (service) ...) is= very hard. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 =D1=87=D0=B5=D1=82=D0=B2=D0=B5=D1=80=D0=B3, =D1=81=D0=B5=D0=BD=D1=82=D1= =8F=D0=B1=D1=80=D1=8C 20, 2018 6:50 =D0=B2=D0=B5=D1=87=D0=B5=D1=80=D0=B0, P= ierre Neidhardt =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Hello, > > I'm not sure I understood all your issues, so I'll try out some suggestio= ns: > > - The ALSA-related options are defined in the `(gnu services sound)` Gu= ile module. > Import the module to your config file and it should fix your issue. > This is documented in the "(guix) Sound Services" section of the manu= al. > > - NetworkManager: have you tried it? Does it work? You might not have t= he same > issues with it on Guix than on Funtoo. I suggest you give it a try fi= rst. > Like you, I had a poor opinion of NetworkManager before I tried it on= GuixSD. > > - If you really want to turn off NetworkManager, I suggest you remove t= he > service from your config. For instance (untested): > > (services > (remove (lambda (service) > (eq? (service-kind service) network-manager-service-type)) > %desktop-services)) > > With NetworkManager disabled, wpa_supplicant and dhclient should also= be > disabled. Check the running processes. > > - If you want to run the wpa_supplicant Guix service, I don't know = you can > specify a custom config. From the documentation and the source co= de in > (gnu services networking), it does not seem to be customizable bu= t I suppose > that it reads /etc/wpa_supplicant anyways. > > - Otherwise, disable wpa_supplicant / dhclient services just like y= ou did with > NetworkManager if necessary. Then you are free to run them manual= ly with your > custom script. > > Hope that helps! > > -- > Pierre Neidhardt > https://ambrevar.xyz/ >