From: znavko@disroot.org
To: "znavko--- via" <help-guix@gnu.org>
Subject: Re: What for network-manager appears in my system?
Date: Fri, 05 Mar 2021 21:56:45 +0000 [thread overview]
Message-ID: <f1a008a07b2958125db87782b70931df@disroot.org> (raw)
In-Reply-To: <66506ba9c5d4f016972f0de0d1eb7f56@disroot.org>
[-- Attachment #1: Type: text/plain, Size: 7154 bytes --]
No, sorry, my config does not work now.
I think that I need remove 'network-manager-applet'
somehow otherwise than this way:
(remove (lambda (service)
(member (service-kind service)
(list network-manager-service-type network-manager-applet
profile-service-type modem-manager-service-type)))
%desktop-services)
beacuase with such config I get everytime this:
# guix system reconfigure config-wpa2-wlp5-wf-blacklist--wt-nm.conf
The following derivations will be built:
/gnu/store/0ymh3ajf45zcw7b06qaaxav1h818c67d-network-manager-applet-1.20.0.drv
/gnu/store/2xkgkr6cw1yf1rxdy293qkk9ldpmrarv-network-manager-applet-1.20.0.tar.xz.drv
162.5 MB will be downloaded
...
...
Can I advise how toremove 'network-manager-applet' from '%desktop-services'
in my config?
March 5, 2021 11:44 PM, znavko@disroot.org wrote:
> I searched something new in %desktop-services that I use in my config
> And really there are new services from line 1257:
> https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm
>
> ;; NetworkManager and its applet.
> (service network-manager-service-type)
> (service wpa-supplicant-service-type) ;needed by NetworkManager
> (simple-service 'network-manager-applet
> profile-service-type
> (list network-manager-applet))
> (service modem-manager-service-type)
> (service usb-modeswitch-service-type)
>
> 1271:
> (service cups-pk-helper-service-type)
>
> I added these new items in my (lambda remove %desktop-services) like this:
>
> (modify-services
> ;; removing unnecessary services
> (remove (lambda (service)
> (member (service-kind service)
> (list gdm-service-type geoclue-service bluetooth-service
> sane-service-type
> network-manager-service-type network-manager-applet
> modem-manager-service-type
> avahi-service-type
> cups-pk-helper-service-type ntp-service-type)))
> %desktop-services) ;end of remove lambda services
> ...
>
> And with these new lines any network-manager or cups will not appear in my /gnu/store
> My system reconfigured well and fast without any ugliness.
>
> I think it will be usefull to look %desktop-services from my terminal
> or also to look declaration of 'gnu/services/desktop.scm' from terminal.
>
> Thanks!
>
> March 5, 2021 10:19 PM, "znavko--- via" <help-guix@gnu.org> wrote:
>
>> Hello! I start 'guix pull && guix package -u && guix system reconfigure /etc/config.scm'
>> and here I saw I have network-manager in my system and its compilation fails (you know
>> reconfigure often breaks last half a year):
>>
>> applying 2 grafts for /gnu/store/a6irrqvlpqk6v66g4kj54w4rcbylywz7-libnma-1.8.28.drv ...
>> building /gnu/store/9pf1dh0ijm5jd4n90sww7dl8038bvk9v-activate.scm.drv...
>> applying 2 grafts for /gnu/store/1hdklza3iwzr01iq0qc86j4hy68xzh4v-network-manager-1.24.0.drv ...
>> |builder for `/gnu/store/1hdklza3iwzr01iq0qc86j4hy68xzh4v-network-manager-1.24.0.drv' failed due to
>> signal 11 (Segmentation fault)
>> build of /gnu/store/1hdklza3iwzr01iq0qc86j4hy68xzh4v-network-manager-1.24.0.drv failed
>> View build log at
>> '/var/log/guix/drvs/1h/dklza3iwzr01iq0qc86j4hy68xzh4v-network-manager-1.24.0.drv.bz2'.
>> building /gnu/store/dxxvr6nri5zvy6wrkc6wrvsl3hr79l7g-boot.drv...
>> cannot build derivation `/gnu/store/qa5ks50xk0w3n7sinka0bgrdpdwrylmy-profile.drv': 1 dependencies
>> couldn't be built
>> building /gnu/store/iifkfi1k4zd89gx72xhffixbxwkv5yr5-raw-initrd.drv...
>> cannot build derivation `/gnu/store/klxa4qccb4wvpz1bkd1zmjz8zlsy0n73-system.drv': 1 dependencies
>> couldn't be built
>> guix system: error: build of `/gnu/store/klxa4qccb4wvpz1bkd1zmjz8zlsy0n73-system.drv' failed
>> I think it happened when Guix changed services organization, because I removed network-managger
>> service from my system.
>>
>> I wish to remove network-manager from my system, but I could not determine what does refer to it?
>>
>> # guix graph --type=referrers network-manager
>> digraph "Guix referrers" {
>> "/gnu/store/7g8agl6jiirihz913bi1xrvgq1jkkl8k-network-manager-1.24.0-doc" [label =
>> "network-manager-1.24.0-doc", shape = box, fontname = sans];
>> "/gnu/store/2qqmqppkn912i0sia4xca98b7zsrwpxy-network-manager-1.24.0" [label =
>> "network-manager-1.24.0", shape = box, fontname = sans];
>> "/gnu/store/2qqmqppkn912i0sia4xca98b7zsrwpxy-network-manager-1.24.0" ->
>> "/gnu/store/2qqmqppkn912i0sia4xca98b7zsrwpxy-network-manager-1.24.0" [color = dimgrey];
>> "/gnu/store/2qqmqppkn912i0sia4xca98b7zsrwpxy-network-manager-1.24.0" ->
>> "/gnu/store/7lz21cbcjazh67jycs72dvr2nvinhfpy-libnma-1.8.28" [color = dimgrey];
>> "/gnu/store/2qqmqppkn912i0sia4xca98b7zsrwpxy-network-manager-1.24.0" ->
>> "/gnu/store/hbqfmqb8wrfmz2kg538j8xk6zmr438x2-network-manager-applet-1.16.0" [color = dimgrey];
>> "/gnu/store/7lz21cbcjazh67jycs72dvr2nvinhfpy-libnma-1.8.28" [label = "libnma-1.8.28", shape = box,
>> fontname = sans];
>> "/gnu/store/7lz21cbcjazh67jycs72dvr2nvinhfpy-libnma-1.8.28" ->
>> "/gnu/store/7lz21cbcjazh67jycs72dvr2nvinhfpy-libnma-1.8.28" [color = darkviolet];
>> "/gnu/store/7lz21cbcjazh67jycs72dvr2nvinhfpy-libnma-1.8.28" ->
>> "/gnu/store/hbqfmqb8wrfmz2kg538j8xk6zmr438x2-network-manager-applet-1.16.0" [color = darkviolet];
>> "/gnu/store/hbqfmqb8wrfmz2kg538j8xk6zmr438x2-network-manager-applet-1.16.0" [label =
>> "network-manager-applet-1.16.0", shape = box, fontname = sans];
>> "/gnu/store/hbqfmqb8wrfmz2kg538j8xk6zmr438x2-network-manager-applet-1.16.0" ->
>> "/gnu/store/hbqfmqb8wrfmz2kg538j8xk6zmr438x2-network-manager-applet-1.16.0" [color = peachpuff4];
>>
>> }
>> I have this in my system, but as I see now it does not remove network-manager:
>>
>> ;; removing unnecessary services
>> (remove (lambda (service)
>> (member (service-kind service)
>> (list ntp-service-type avahi-service-type
>> bluetooth-service network-manager-service-type
>> gdm-service-type)))
>> %desktop-services) ;end of remove lambda services
>> Here it is what I've installed under root:
>>
>> root@antelope ~# guix package -I
>> hdparm 9.60 out /gnu/store/11dsd9gizfvksbvn74qv7qgrxpxv4w9l-hdparm-9.60
>> unzip 6.0 out /gnu/store/1zx8knb7h79q6cr4kwhbz6z6v609309w-unzip-6.0
>> bzip2 1.0.8 out /gnu/store/a9f7wmc75hbpg520phw9z4l9asm3qvsw-bzip2-1.0.8
>> wget 1.20.3 out /gnu/store/6b26hgs87h6m2qvnpa1qxmkizhhh4jpi-wget-1.20.3
>> curl 7.74.0 out /gnu/store/6w4w31samjbpiavzgm13zin6qnx22xb6-curl-7.74.0
>> emacs-paredit 24 out /gnu/store/xvcf371a70iflp4plmm7sr7v25n8kb87-emacs-paredit-24
>> emacs-highlight 0.0.0 out /gnu/store/gh5vgsm1124kgjhlxd8bpb0nfgacqi36-emacs-highlight-0.0.0
>> openvpn 2.4.10 out /gnu/store/gnspsy1j18chlc6d5vaf7xa17x8m2m6b-openvpn-2.4.10
>> emacs 27.1 out /gnu/store/7z33lhy9m8xqgym9w3hj30y1w290c8hn-emacs-27.1
>> protonvpn-cli 2.2.6 out /gnu/store/wfvag525xhppxf7vnxj11a0h4x9dsrbr-protonvpn-cli-2.2.6
>> graphviz 2.42.3 out /gnu/store/bi9hjvhcgr5rc0r29wmb18xxk4cgphx8-graphviz-2.42.3
>> xdot 1.1 out /gnu/store/g64mfj0dphlksshp8i3zqbcpza1pbsqx-xdot-1.1
>> There are my config in attach and also all packages network-manager.
>> Can you help me to configure my system to remove nm?
[-- Attachment #2: config.scm --]
[-- Type: application/octet-stream, Size: 4002 bytes --]
; -*- mode: Scheme; -*-
;;this is znavko's Dual Boot config
;; without firmware
;; for lightweight xfce4 desktop
;; with the second OS in GRUB on the separate SSD /dev/sdb2 ( grub: (hd1,gpt2) )
;; without networkmanager but wpa_supplicant + static-networking instead
;; with sudoers for openvpn and wpa_supplicant scripts in /usr/scripts
;; disabling pc-speaker bluetooth
(use-modules (gnu) (gnu system nss)
(gnu system locale) ;;for locale-definition
(gnu services desktop)
(srfi srfi-1) ;;for remove function
(gnu services networking) ;;for remove ntp
(gnu services avahi) ;;for remove avahi
(gnu services xorg)
(gnu packages admin) ;;for wpa_supplicant
;;(gnu packages vpn) ;;for protonvpn
)
(define %sudoers-specification
(plain-file "sudoers" "root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
%wheel ALL=(root) NOPASSWD: /usr/scripts/*, /wpa"))
(use-service-modules desktop)
(use-package-modules certs gnome)
(operating-system (firmware '())
(host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
(bootloader (bootloader-configuration (bootloader grub-efi-bootloader)
(target "/boot/efi")
(menu-entries (list (menu-entry
(label "Devuan")
(linux "(hd1,gpt2)/vmlinuz")
(linux-arguments '("root=/dev/sdb2"))
(initrd "(hd1,gpt2)/initrd.img"))))))
(file-systems (cons*
(file-system (device "/dev/sda1") (mount-point "/boot/efi") (type "vfat"))
(file-system (device "/dev/sda2") (mount-point "/") (type "ext4"))
(file-system (device "/dev/sdc1") (mount-point "/home/bob/disk") (type "ext4"))
%base-file-systems))
(swap-devices '("/dev/sda3"))
(users (cons* (user-account (name "bob") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/bob"))
(user-account (name "mom") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/mom"))
(user-account (name "dev") (group "users")
(supplementary-groups '("wheel" "netdev" "audio" "video"))
(home-directory "/home/dev"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
gvfs ;for user mounts
wpa-supplicant
;; protonvpn-cli
%base-packages))
(services (cons*
;; xfce4 desktop, dhcp-client, slim
(service xfce-desktop-service-type)
;;(service dhcp-client-service-type)
(service slim-service-type)
(static-networking-service "wlp5s0" "192.168.1.10"
#:netmask "255.255.255.0"
#:gateway "192.168.1.1")
(modify-services
;; removing unnecessary services
(remove (lambda (service)
(member (service-kind service)
(list gdm-service-type geoclue-service bluetooth-service
sane-service-type
network-manager-service-type network-manager-applet
profile-service-type
modem-manager-service-type
usb-modeswitch-service-type
avahi-service-type
cups-pk-helper-service-type ntp-service-type)))
%desktop-services) ;end of remove lambda services
;; wpa_supplicant with static networking (above)
(wpa-supplicant-service-type config =>
(wpa-supplicant-configuration
(interface "wlp5s0")
(config-file "/etc/wpa_supplicant/wpa_supplicant.conf")))
) ;;end of modify-services
)) ;;end of services
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)
;;blacklist ugly sound speaker, blacklist
(kernel-arguments '("modprobe.blacklist=pcspkr,snd_pcsp,bluetooth,btusb,ath3k"))
(sudoers-file %sudoers-specification)
) ;;end of operating-system
prev parent reply other threads:[~2021-03-05 21:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-05 19:19 What for network-manager appears in my system? znavko--- via
2021-03-05 20:43 ` znavko
2021-03-05 21:56 ` znavko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f1a008a07b2958125db87782b70931df@disroot.org \
--to=znavko@disroot.org \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).