Emacs C source

2023-12-17 Thread Kristoffer Ström
Hello! I'm running emacs in a guix shell, and wonder how/where to get the C source code directory for xref-find-definitions. I've grepped the /gnu/store/*emacs but cannot find the C source, is there some special package/output or procedure needed to get it included in the shell environment?

Re: Emacs C source

2023-12-17 Thread Kristoffer Ström
> You can download source archives for any package using build --sources, like > this: That's nice to know! However i would greatly prefer if there was some way to make it be available as part of a manifest, i'm building multiple environments using guix shell containers, and doing this as an ext

Re: Emacs C source

2023-12-19 Thread Kristoffer Ström
> --8<---cut here---start->8--- > (use-modules (guix scripts build)) > > (specifications->manifest > (map > (lambda (spec) > (begin > (guix-build "--source" spec) > spec)) > (list >"emacs" >"coreutils" >))) > --8<---

Re: Include home environment in image

2023-12-31 Thread Kristoffer Ström
Lars Rustand writes: > Hi, how can I include a home environment in an image or vm created with > `guix system image` or `guix system vm`? I would love to know this as well. I've not found any examples in the wild that are not tied into other distributions (RDE).

Cross-compilation arm-none-eabi

2024-01-15 Thread Kristoffer Ström
Hello! I'm trying to use `qmk` to build firmware for my keyboard, but i'm running into cross complilation issues that i have no idea where to start on. When running in a shell with `qmk` i get arm-none-eabi-gcc: command not found The only maybe related package i've been able to find is `rasp

Issues cross-compiling arm with QMK

2024-03-09 Thread Kristoffer Ström
When trying to compile keyboard firmware using the qmk toolkit, i run into this error: ./lib/pico-sdk/src/rp2_common/hardware_base/include/hardware/address_mapped.h:94:19: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] uint32_t rc = (uintptr_t)addr;

Using custom xkbmaps

2024-03-13 Thread Kristoffer Ström
Hello, in my day-to day i'm using a custom xkbmap that i've been developing over the last decade or so, and i'm looking to migrate to guix system. However, i have found no straightforward way to include a custom mapping (basically just a symbols file) into my operating-system declarations. Look

Re: Using custom xkbmaps

2024-03-14 Thread Kristoffer Ström
> When I switched to Guix, I gave up my own Rocket layout. [1] Where is > your layout, please? It's a personalized layout that i have no intention of sharing, but it has some similarities with your rocket, but using space for lv3-shift rather than ctrl. > I am now good enough with Guix to propo

Guix deploy ignoring identity

2024-05-13 Thread Kristoffer Ström
Hello, i'm trying to use guix deploy for a remote vhost, my conf looks something like this: (list (machine (operating-system test-os) (environment managed-host-environment-type) (configuration (machine-ssh-configuration (host-name "test.se")

Re: Guix deploy ignoring identity

2024-05-13 Thread Kristoffer Ström
> Would you, by any chance, happen to have ~/.ssh/config that sets Identity for > the host in question? If yes, those do override whatever you put into > (machine-ssh-configuration). No i do not, i only have known_hosts and my keys. have a good day too.

Re: Guix deploy ignoring identity

2024-05-13 Thread Kristoffer Ström
> There is no error message? With my current user it gets the ssh login correct, but fails at sudo (i want it to, i don't like my remote user to be pwless sudo) The error i get is guix deploy: error: failed to deploy rymdkoloni: SSH authentication failed for 'dep...@example.se': Access denied

unable to reconfigure after update

2024-09-03 Thread Kristoffer Ström
I just updated to the new post-merge system and i'm running into some strange issues. As i run the reconfigure, it seems to switch early to a broken system, and then attempting to bulid additional things, which fail with not finding the guixbuild group. Log below: -

Re: [sane] how to scan using sane-airscan?

2024-11-06 Thread Kristoffer Ström
Did anyone get this to work in the meantime? I have been trying as well and i cannot understand how it's supposed to work. Kristoffer

Questions about guix-home-service-type for multi-user systems

2024-12-04 Thread Kristoffer Ström
by the pull and system reconfigure. I do not want to run an extra guix pull in user B, since this feels like a waste of resources, and i do want the profiles to be always in sync. Is there some option i'm missing? Best, Kristoffer Ström.

Re: Questions about guix-home-service-type for multi-user systems

2024-12-27 Thread Kristoffer Ström
> I managed to find a "solution" for that and described it in a blog post > here: https://wolfsden.cz/blog/post/what-goes-into-guix-shaped-hole.html > > However be aware that is does have limitations and one needs to be > somewhat careful (see the update at the bottom of the article). > > I just

Re: Questions about guix-home-service-type for multi-user systems

2024-12-06 Thread Kristoffer Ström
Tomas Volf <~@wolfsden.cz> writes: > Edouard Klein writes: > >> The way I work around this is to use (guix-for-channels ...) in the >> sytem's configuration, and never guix pull. The only guix is the >> system's: /run/current-system/profile/bin/guix > > Out of curiosity, were you able to figure o

Re: Search for Guix package by provided filename

2025-01-01 Thread Kristoffer Ström
> Does there exist a tool for searching out which Guix package provides a > particular executable, or a particular file more generally, please? As far as i know, unfortunately no. I would love to have a tool like this, (still don't know where to find hcitool for example) Sometimes grepping the

Re: Reproducibility of guix shell container across different host OS

2025-05-03 Thread Kristoffer Ström
Just because it has not been mentioned before, Floating Point Units on CPUs are complex beasts that can carry state and other fun stuff. I believe most common instructions like addition and multiplication should be deterministic, but trigonometric functions might not be reproducible across diffe

Re: Integrating Guix REPL into Geiser

2025-05-15 Thread Kristoffer Ström
I have a hack: GUILE_LOAD_PATH=$(echo '(string-join %load-path \":\")' | guix repl -tmachine | tail -1 | cut -d\\\" -f2) Guile then picks up on this env variable, and things are good. It's not pretty, but it works for me.