Re: Guix Home fails with "In procedure symlink: No space left on device"

2025-03-15 Thread Tanguy Le Carrour
Hi Efraim,

I had not realized that all the cool kids were doing Btrfs! 😎


On Thu Mar 13, 2025 at 7:33 AM CET, Efraim Flashner wrote:
> The literal pipes hurt my brain, so as someone who (still) hasn't dived
> deeply into Guile I have a different option I've come up with for mixing
> Guile and external programs:
>
> ```
> (define (decrypt-password encrypted-string)
>   (program-file
> "magic-password-file"
> #~(begin
> (use-modules (ice-9 popen)
>  (ice-9 rdelim))
> (display
>   (read-line (pipeline
>'((#$(file-append (S "coreutils-minimal") "/bin/echo")
>   #$encrypted-string)
>  (#$(file-append (S "coreutils-minimal") 
> "/bin/base64")
>   "--decode")
>  (#$(file-append (S "gnupg") "/bin/gpg")
>   "--no-tty"
>   "--for-your-eyes-only"
>   "--quiet"
>   "--decrypt"
>
> (define %dbxfs-token
>   (decrypt-password %dbxfs-token-base64))
> ```

Thanks to you and to everyone who contributed snippets!
For sure, I’ll have to go through this thread again and to set up everything
properly!

-- 
Tanguy



Re: Gnome "oh no something has gone wrong..."

2025-03-15 Thread Luis Felipe

Hi Christophe,

On 15/03/25 10:01, Christophe Pisteur wrote:

Le vendredi 14 mars 2025 à 13:18 +, Luis Felipe a écrit :

On 14/03/25 12:12, Christophe Pisteur wrote:

I'll create a test user to see if it works for me too.

(...)


Please let us know how it goes,


I've created a new user according to your instructions and the result 
is that the new user doesn't see an “oh no something has gone 
wrong...” error message.


What should I do now?
How can I find out what's causing this malfunction in my user space, 
given that I've already deleted ~/.config/dconf and 
~/.local/share/gnome-shell without solving the problem?


In https://issues.guix.gnu.org/36924, they mention looking at 
~/.cache/gdm/session.log. Mine lists several errors, even though my 
desktop is working normally, apparently. The same issue also mentions 
removing «.local/share» and «.cache». Personally, I'd remove the whole 
«.cache» directory, but I'd be more selective with «.local/share», 
removing only things related to GNOME. So finding the root cause of the 
problem might feel like playing «pin the tail on the donkey».


If this is taking precious time from you, though, I'd recommend booting 
the previous generation of the system to see if it works correctly and 
use that  instead. You can select a previous generation from the GRUB 
menu when booting the system.


Hope that helps, good luck.



OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Gnome "oh no something has gone wrong..."

2025-03-15 Thread sebastien

Hi Christophe,

Actually i have the same problem after update guix pull & guix reconfigure to 
the last gnome version. 


Looking to /var/log/message in real time using tail -f /var/log/messages, i 
found there is an ugly segfault after more or less 1 minute in one of gds 
service 
(/gnu/store/qmjsxby7knqmy4h0rr9ahjm6713f150n-gnome-settings-daemon-47.2/libexec/gsd-usb-protection)
 launched by gnome at startup : gsd-usb-protection .gsd-ubs-protect , 
org.gnome.settingsDaemon.USBProtection.desktop ... This service is not 
accessible from dconf editor of gsettings

I found that it's possible to desactivate this gsd-usbprotector gnome service 
by modifying the corresponding gnome.session file : 


RequiredComponents=org.gnome.Shell;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.UsbProtection;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XSettings;


BUT ... this is a readonly file in /gnu/store, so i'm actually blocked. I don't 
know how to modify this file to remove org.gnome.SettingsDaemon.UsbProtection

I guix rollback to go back to the previous working gnome version :(

Best regards,
Src.

Le samedi 15 mars 2025 à 2:50 PM, Luis Felipe  a écrit :

> 

> 

> Hi Christophe,
> 

> On 15/03/25 10:01, Christophe Pisteur wrote:
> 

> > Le vendredi 14 mars 2025 à 13:18 +, Luis Felipe a écrit :
> > 

> > > On 14/03/25 12:12, Christophe Pisteur wrote:
> > > 

> > > > I'll create a test user to see if it works for me too.
> > > > 

> > > > (...)
> > > 

> > > Please let us know how it goes,
> > 

> > I've created a new user according to your instructions and the result
> > is that the new user doesn't see an “oh no something has gone
> > wrong...” error message.
> > 

> > What should I do now?
> > How can I find out what's causing this malfunction in my user space,
> > given that I've already deleted ~/.config/dconf and
> > ~/.local/share/gnome-shell without solving the problem?
> 

> 

> In https://issues.guix.gnu.org/36924, they mention looking at
> ~/.cache/gdm/session.log. Mine lists several errors, even though my
> desktop is working normally, apparently. The same issue also mentions
> removing «.local/share» and «.cache». Personally, I'd remove the whole
> «.cache» directory, but I'd be more selective with «.local/share»,
> removing only things related to GNOME. So finding the root cause of the
> problem might feel like playing «pin the tail on the donkey».
> 

> If this is taking precious time from you, though, I'd recommend booting
> the previous generation of the system to see if it works correctly and
> use that  instead. You can select a previous generation from the GRUB
> menu when booting the system.
> 

> Hope that helps, good luck.

publickey - s.rey.coyrehourcq@proton.me - 0xC3237850.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: after removing pidgin and gajim it wants to build them again during updating packages

2025-03-15 Thread gfp

Hi Mauritz,

thanks for mentioning that bug website.



Am 11.03.25 um 03:13 schrieb Mauritz Stenek:


Hi Gottfried,

On 3/10/25 08:05, gfp wrote:


it can´t be upgraded, it wants to build
farstream?


Here's the related bug: https://issues.guix.gnu.org/75739




How to proceed?

Do I have to copy that part from Ludo into my config.scm in order to 
update packages?


(I removed pidgin and gajim from my packages, so why does it want to 
build it again?)


How will I know that farstream is now available and I can remove those 
snippets?


(define pidgin-sans-farstream
  ;; Work around .
  (package/inherit pidgin
(arguments
 (substitute-keyword-arguments (package-arguments pidgin)
   ((#:configure-flags flags #~'())
;; Disable voice/video due to lack of Farstream.
#~(cons "--disable-vv" #$flags
(inputs
 (modify-inputs (package-inputs pidgin)
   (delete "farstream")

   ;; Pidgin expects "gst-plugins-base" to be among its inputs.
   (append (specification->package "gst-plugins-base"))

(define sans-farstream
  (package-input-rewriting `((,pidgin . ,pidgin-sans-farstream

And then:

Toggle snippet (6 lines)
 (service bitlbee-service-type
  (bitlbee-configuration
   (bitlbee (sans-farstream bitlbee-purple))
   (plugins (list (sans-farstream purple-mattermost)

Ludo’.
--

2.

What do I have to do with that part?


diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index b8971e436e..4e839f114a 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -989,7 +989,6 @@ (define-public pidgin
dbus
dbus-glib
;; evolution-data-server
-   farstream
gnutls
gstreamer
;; gtkspell2
@@ -1026,9 +1025,10 @@ (define-public pidgin
 (arguments
  `(#:configure-flags
(list
-(string-append "CFLAGS=-I"
-   (assoc-ref %build-inputs "gst-plugins-base")
-   "/include/gstreamer-1.0")
+;; XXX: Disable voice and video calls until Farstream is back 
to life:

+;; .
+"--disable-vv"
+
 "--disable-gtkspell"
 "--disable-gevolution"
 "--enable-cap"


thanks

Gottfried


OpenPGP_0xD9E413C6C4BB32CE.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: guile emacs

2025-03-15 Thread Janneke Nieuwenhuizen
Cayetano Santos writes:

Hi,

>   An update to guile-emacs[1] just landed on the repos.
>
> https://yhetil.org/guix-patches/87h63umi1m@retrospec.tv/
>
>   I decided to give it a try, out of curiosity after this [2] talk. No
>   luck, though, as it crashes for me.
>
> guix install guile-emacs
> emacs -q
>
>   Anyone else tried ?

You need to run it using -Q.
See 

And even then you may experience crashes...it's very much a work in
progres!

Greetings,
Janneke

-- 
Janneke Nieuwenhuizen   | GNU LilyPond https://LilyPond.org
Freelance IT https://www.JoyOfSource.com | Avatar® https://AvatarAcademy.com



guile emacs

2025-03-15 Thread Cayetano Santos

Hi Guix,

  An update to guile-emacs[1] just landed on the repos.

https://yhetil.org/guix-patches/87h63umi1m@retrospec.tv/

  I decided to give it a try, out of curiosity after this [2] talk. No
  luck, though, as it crashes for me.

guix install guile-emacs
emacs -q

  Anyone else tried ?

Thanks,

[1] https://guile-emacs.org/
[2] https://emacsconf.org/2024/talks/guile/

--
Cayetano Santos
.
gpg: CCB8 1842 F9D7 058E CD67 377A BF5C DF4D F6BF 6682
key: meta.sr.ht/~csantosb.pgp


signature.asc
Description: PGP signature


Re: Guix Home fails with "In procedure symlink: No space left on device"

2025-03-15 Thread Maxim Cournoyer
Hi Tanguy,

"Tanguy Le Carrour"  writes:

> Hi Maxim, Hi Guix,
>
>
> On Sun Mar 9, 2025 at 5:57 AM CET, Maxim Cournoyer wrote:
>> "Tanguy Le Carrour"  writes:
>>
>> [...]
>>
 I'd migrate your system to the Btrfs file system, which dynamically
 allocates inodes and never runs out of them.  It has a few peculiarities
 that must be taken into account, such as the requirement to run 'btrfs
 balance' periodically to reclaim unallocated blocks, but otherwise it's
 stable and has interesting features.  Make sure to use it with Zstd
 compression to magically double (about) your storage capacity :-).
>>>
>>> Sounds like an **excellent** plan! I’ll give it a try at the week-end!
>>> Can I actually do it from the installer? 🤔… well I guess I’ll figure it out
>>> soon enough! 😅
>>
>> I think the installer supports creating and installing to Btrfs.  The
>> compression options can always be added or changed at a later time.
>
> Long story short: I now have a brand new Guix System with a Btrfs root and
> everything seems to be working quite well! 😁

Excellent!  Just don't forget to run the 'btrfs balance /' command
regularly, otherwise over time the allocated storage chunks of Btrfs
gets all used up, despite what 'df' and other tools might say, and this
is an annoying situation to recover from.

Here are some btrfs-related jobs I use:

--8<---cut here---start->8---
(define btrfs-balance-job
  ;; Re-allocate chunks which are using less than 5% of their chunk
  ;; space, to regain Btrfs 'unallocated' space.  The usage is kept
  ;; low (5%) to minimize wear on the SSD.  Runs at 12 PM every 3 days.
  #~(job '(next-hour-from (next-day (range 1 31 3)) '(12))
 (lambda ()
   (system* #$(file-append btrfs-progs "/bin/btrfs")
"balance" "start" "-dusage=5" "/"))
 "btrfs-balance"))

(define btrfs-scrub-job
  ;; Scans the whole disk data to detect and repair errors.  Runs at 12
  ;; AM monthly.
  #~(job '(next-hour-from (next-month) '(12))
 (lambda ()
   (system* #$(file-append btrfs-progs "/bin/btrfs")
"scrub" "start" "-c3" "/"))
 "btrfs-scrub"))

(define btrbk-job
  #~(job '(next-hour)
 (lambda ()
   (system* #$(file-append btrbk "/bin/btrbk")
"-q" "-c" #$(local-file "btrbk.conf") "run"))
 "btrbk"))
--8<---cut here---end--->8---

I'd also advise using just compress=zstd and not compress-force=zstd, as
the later limits the size of Btrfs extents (if I recall the terminology
right) created to 512 KiB or similar, leading to a huge number of
extents over time, which can slow some things down such as mounting the
file system at boot.

In case you have any question, knowledgeable Btrfs folks are usually
responsive in #btrfs on Libera.chat.

Cheers!

-- 
Thanks,
Maxim



Re: Evolution fails to connect to CalDAV via TLS outside Gnome's environment

2025-03-15 Thread David Lecompte
Hello Luis

> I think that the missing package to make it work in my case was 
> "gsettings-desktop-schemas", but "desktop-file-utils" and 
> "gnome-keyring" (instead of the gnome-keyring-service-type) solved
> other 
> problems as well.
> 

I tried this time with plasma-desktop-service-type, evolution was
asking for passwords repeatedly, I added gnome-keyring-service-type, it
was the same, then I added gnome-keyring and this was fixed.

The errors with CalDAV and CardDAV were different but they were fixed
by addting gsettings-desktop-schemas, thanks for hint!

Before this, I also added dconf because without it, I was not able to
change any setting in evolution.

It would be beneficial for Guix users if such information could be
captured somewhere.

-- 
David Lecompte 



Re: Gnome "oh no something has gone wrong..."

2025-03-15 Thread Christophe Pisteur
Hi Luis, hi Andreas,

Le vendredi 14 mars 2025 à 13:18 +, Luis Felipe a écrit :
> On 14/03/25 12:12, Christophe Pisteur wrote:
> > I'll create a test user to see if it works for me too.
> > 
> > (...)
> 
> Please let us know how it goes,

I've created a new user according to your instructions and the result
is that the new user doesn't see an “oh no something has gone wrong...”
error message.

What should I do now? 
How can I find out what's causing this malfunction in my user space,
given that I've already deleted ~/.config/dconf and
~/.local/share/gnome-shell without solving the problem?

Christophe


cannot build a kernel with my custom config

2025-03-15 Thread Adam
Hello Guix!
Recently I've read about customizing the kernel on this page
https://guix.gnu.org/cookbook/en/html_node/Customizing-the-Kernel.html
After reading I decided to try one of described there ways of
providing my own kernel configuration.
Long story short, in my configuration I disabled everything related to
rtw89 driver
```
...
CONFIG_RTW89=n
CONFIG_RTW89_CORE=n
CONFIG_RTW89_PCI=n
CONFIG_RTW89_8851B=n
CONFIG_RTW89_8852A=n
CONFIG_RTW89_8852B=n
CONFIG_RTW89_8852C=n
CONFIG_RTW89_8851BE=n
CONFIG_RTW89_8852AE=n
CONFIG_RTW89_8852BE=n
CONFIG_RTW89_8852CE=n
...
```
And I used this code snippet to define my custom kernel package
```
(define-public my-linux-package
  (package
(inherit linux-libre)
(native-inputs
 `(("kconfig" ,(local-file "config"))
  ,@(alist-delete "kconfig"
  (package-native-inputs linux-libre))
```
After building my package I checked the config file which is stored in
the derivation. Unfortunately, that file had these options
```
CONFIG_RTW89=m
CONFIG_RTW89_CORE=m
CONFIG_RTW89_PCI=m
CONFIG_RTW89_8851B=m
CONFIG_RTW89_8852A=m
CONFIG_RTW89_8852B_COMMON=m
CONFIG_RTW89_8852B=m
CONFIG_RTW89_8852BT=m
CONFIG_RTW89_8852C=m
```
I assume that guix used default kernel configuration instead. So my
question is - is there any way to provide my own .config file to build
a kernel package?