Re: How to (actually) get a perfect setup?

2025-03-25 Thread Snikta
It was the good old "shit behind the levers". I had a channel.scm in a 
parent directory and that broke compilation. However, in my defense, the 
error message was quite cryptic. It looked like there was an error in 
the module (icm-9 boot). When I switched to guile-next, I got a much 
better error message with a back trace. That helped me solve the 
problem. (I'm a guile scheme noob).


Anyway, Thanks!

On 3/24/25 08:41, 45mg wrote:

Snikta  writes:


I'm using Emacs with Geiser Guile on Guix System, and I've tried to add
both /run//guile/site/3.0 and (built) ~/src/guix to the %load-path
(and they are there). Still, I never get a functional development
environment. I.e. I'm not able to load any Guix config file without an
error, not able to see any code documentation and I'm not able to follow
symbols. Emacs is able to find the files of different imported modules
(using M-.), but nothing else.

I have a related issue: Geiser dies if packages are defined in
submodules of the current project.

For example, I have package 'foo' defined in ./packages/foo.scm, and I
have `(define-module (config) #:use-module (packages foo))` in
./config.scm. When I try to start Geiser, it gives me 'error: foo:
unknown package' and the REPL exits.


OpenPGP_0x8CF8982C455FAB05.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Idiomatic way to run Emacs 30.1?

2025-04-08 Thread Snikta

Hi,

I want to run the latest stable version of Emacs, but I'm not sure how 
to achieve this on Guix.


I've tried: guix shell emacs ---with-version=emacs=30.1

But that doesn't work.

Should I create a new package that inherits from emacs and then change 
version?


Best regards,
Snikta



OpenPGP_0x8CF8982C455FAB05.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Flatpak and GNOME

2025-03-02 Thread Snikta

Have you tried rebooting already? I remember it helping sometimes. If
that does not help, check the value of $XDG_DATA_DIRS to be sure that
it includes paths to flatpak directories. But when I tried flatpak
before, I do not remember configuring that manually in Guix System.

There may also be software with similar functionality in guix to what
you are trying to use with flatpak, but I am unsure which may suit
your needs.


I did reboot and it did not fix the issue. The packages are actually 
available through the nonguix channel, but I felt it's probably is safer 
to use the more widely adopted package on Flathub. Maybe I'll go for the 
nonguix packages instead.


I also found some Guix packages that extends GNOME. I'll try them and 
some other out-of-band extensions first.


(Sorry if mentioning nonguix is inappropriate.)

Thanks!



OpenPGP_0x8CF8982C455FAB05.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Flatpak and GNOME

2025-03-02 Thread Snikta

Hi,

I'm using Steam and Signal from Flatpak but I don't get them to play 
well with GNOME. The apps don't show up in the applications menu and 
they are not visible on the top tool bar. I guess this is probably an 
easy fix, but I'm not too familiar with neither Flatpak, GNOME nor Guix. 
I guess one should set some XDG or PATH environment variable. Or maybe 
even install some system or home service.


So how can I make Flatpak apps integrate well with GNOME on Guix?

Best regards,
Snikta



Re: Flatpak and GNOME

2025-03-02 Thread Snikta




  # FLATPAK
  # Make apps available in GNOME Shell.
  export 
XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"
  export XDG_DATA_DIRS="$XDG_DATA_DIRS:/var/lib/flatpak/exports/share" 



Worked! Thanks!



OpenPGP_0x8CF8982C455FAB05.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


How to (actually) get a perfect setup?

2025-03-23 Thread Snikta

Hi!

I'm struggling with my Emacs setup for config and (hopefully) package 
hacking.


I'm using Emacs with Geiser Guile on Guix System, and I've tried to add 
both /run//guile/site/3.0 and (built) ~/src/guix to the %load-path 
(and they are there). Still, I never get a functional development 
environment. I.e. I'm not able to load any Guix config file without an 
error, not able to see any code documentation and I'm not able to follow 
symbols. Emacs is able to find the files of different imported modules 
(using M-.), but nothing else. From the Geiser Guile REPL I'm able to 
call (use-modules (gnu home)), but if I call (home-environment) 
afterwards, I get an "Unbound variable".


guix repl and Guile Studio works, so I guess I should take a look at the 
Guile Studio package. Also, I'm installing all Emacs packages from ELPA 
instead of Guix (except for emacs-guix). Maybe that's stupid.


So how do you manage to get a "perfect" setup? Is it documented 
somewhere (not considering "The perfect setup" in the reference manual)?


Oh, and this is what the relevant part of my init.el looks like right now:

;; Guile scheme support
(use-package geiser :ensure t)

(use-package geiser-guile
  :ensure t
  :config
  ;; Guix support
  (let ((guix-dir "~/src/guix/"))
    (if (file-directory-p guix-dir)
    (add-to-list 'geiser-guile-load-path guix-dir

Best regards,
snikta



OpenPGP_0x8CF8982C455FAB05.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature