unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to remove %base-firmware from firmware variable
@ 2021-01-22 18:49 znavko--- via
  2021-01-22 19:02 ` Tobias Geerinckx-Rice
  2021-01-22 19:35 ` znavko
  0 siblings, 2 replies; 3+ messages in thread
From: znavko--- via @ 2021-01-22 18:49 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 440 bytes --]

Hello! I saw in Guix manual http://guix.gnu.org/manual/en/guix.html#index-firmware
that there is 'firmware' module in operating-system that is %base-firmware by default.
I want to try to remove 'firmware' module to look if my pc continues to work without it.

Can you please help me?
I use 'remove' procedure in 'services' but really cannot repeat it for 'operating-system'.
I just want to unset 'firmware' or make it totally empty.

[-- Attachment #2: config-static.conf --]
[-- Type: text/plain, Size: 3513 bytes --]

; -*- mode: Scheme; -*-
;;this is znavko's Dual Boot config
;; 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

(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
	     )

(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 
		  (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"))
				%base-user-accounts))

		  ;; This is where we specify system-wide packages.
		  (packages (cons* nss-certs ;for HTTPS access
				   gvfs	     ;for user mounts
				   wpa-supplicant
				   %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 "wlp0s20f0u2" "192.168.1.71"
							      #:netmask "255.255.255.0"
							      #:gateway "192.168.1.1")
			     
			     (modify-services      
			      ;; 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

			      ;; wpa_supplicant with static networking (above)
			      (wpa-supplicant-service-type config =>
							   (wpa-supplicant-configuration
							    (interface "wlp0s20f0u2")
							    (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"))

		  (sudoers-file %sudoers-specification)
		  
		  ) ;;end of operating-system


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to remove %base-firmware from firmware variable
  2021-01-22 18:49 How to remove %base-firmware from firmware variable znavko--- via
@ 2021-01-22 19:02 ` Tobias Geerinckx-Rice
  2021-01-22 19:35 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: Tobias Geerinckx-Rice @ 2021-01-22 19:02 UTC (permalink / raw)
  To: znavko; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

Znavko,

Guix's operating-system is a record.  Records are just key-value 
pair collections.  Some keys have default values, but there's no 
need to remove anything when you simply want to replace the 
default.

znavko--- via 写道:
> I just want to unset 'firmware' or make it totally empty.

Pass the empty list as its value:

(operating-system
  ...
  (firmware (list))                     ; or '() if you like that
  ...)

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to remove %base-firmware from firmware variable
  2021-01-22 18:49 How to remove %base-firmware from firmware variable znavko--- via
  2021-01-22 19:02 ` Tobias Geerinckx-Rice
@ 2021-01-22 19:35 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: znavko @ 2021-01-22 19:35 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: help-guix

Yes, it works. But only external usb wifi adapter does not work. I use internal now.

$ lsusb
Bus 001 Device 002: ID 0cf3:9271 Qualcomm Atheros Communications AR9271 802.11n
...

$ ifconfig -a | grep Link
enp2s0    Link encap:Ethernet  HWaddr E4:54:E8:BA:20:AC
lo        Link encap:Local Loopback
wlp5s0    Link encap:Ethernet  HWaddr AC:D5:64:52:9C:57


# lspci | grep -i wireles
05:00.0 Network controller: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter (rev 01)

# lspci -vv -s 05:00.0 | grep driver
	Kernel driver in use: ath9k


I do not know which driver was used for usb wifi adapter, i remember it could connect
with nl80211. Is nl80211 not free?


Can you advice me some powerful usb wifi adapter with free drivers?



January 22, 2021 7:09 PM, "Tobias Geerinckx-Rice" <me@tobias.gr> wrote:

> Znavko,
> 
> Guix's operating-system is a record. Records are just key-value 
> pair collections. Some keys have default values, but there's no 
> need to remove anything when you simply want to replace the 
> default.
> 
> znavko--- via 写道:
> 
>> I just want to unset 'firmware' or make it totally empty.
> 
> Pass the empty list as its value:
> 
> (operating-system
> ...
> (firmware (list)) ; or '() if you like that
> ...)
> 
> Kind regards,
> 
> T G-R


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-22 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 18:49 How to remove %base-firmware from firmware variable znavko--- via
2021-01-22 19:02 ` Tobias Geerinckx-Rice
2021-01-22 19:35 ` znavko

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git