Re: Guix Days: Patch flow discussion

2024-02-09 Thread Edouard Klein
Skyler Ferris writes: > On 2/6/24 05:39, Steve George wrote: >> I agreed to organise some 'patch review' online sessions in the next couple >> of >> weeks. >> >> Organising a basic process is a good topic for that online session. For >> example, elsewhere in the thread someone mentions some

Re: Guix Days: Patch flow discussion

2024-02-06 Thread Edouard Klein
I, for one, would be willing to review patches, hoping that in turn my patches would be reviewed instead of staying in limbo forever, which is a drag on me submitting more patches. Is there a procedure to follow, or do I just start replying "LGTM" to patch email threads ? Cheers, Edouard. Steve

Re: Installing software inside containers

2023-12-19 Thread Edouard Klein
our problem. It solved mine: I had a quite complex OS configuration to try out before deploying it on a VPS, and running VMs is cumbersome a requires a lot of disk space. The OS configuration I want to try implies running containers inside of containers, now it is possible :) Cheers, Edouard. Edou

Re: Moment de convivialité Guix@Paris en nov… euh… décembre

2023-12-08 Thread Edouard Klein
Merci d'avoir organisé tout ça :) Tanguy LE CARROUR writes: > Bonjour Guix, > > Merci à ceux qui ont bravé les intempéries et les transports parisiens > pour venir hier soir ! Et, surtout merci à ceux qui, présents ou à > distance, on partagé leur travail, leurs découvertes ou leurs problèmes, >

Re: Installing software inside containers

2023-12-03 Thread Edouard Klein
Hi ! If you create you containers with guix shell, you can use the --nesting option, or alternatively, use: guix shell --container --network --expose=/gnu/ --share=/var/guix/ guix Maybe similar options with a 'guix system'-generated container would work. Alternatively, if your own guix has a

Re: Moment de convivialité Guix@Paris en octobre

2023-11-05 Thread Edouard Klein
Je souhaite venir également :) J'avais raté l'annonce pour octobre. J'aurais deux trucs à présenter: - Du sucre syntaxique pour instancier, étendre, modifier, ou supprimer des services, - Comment monter des systèmes de fichier 9P au sein d'un guix container. C'est pas super formel, ce sont des

Re: guix shell readline issue with R

2023-07-04 Thread Edouard Klein
exit 0 fi ACTUAL CONTENTS OF THE SCRIPT HERE #+end_src Cheers ! Edouard Kyle Andrews writes: > Edouard Klein writes: > >> Here is a script that restores the ctrl-C behaviour of R, whithin a guix >> shell. >> >> I must admit I don't exactly understand th

Re: guix shell readline issue with R

2023-07-03 Thread Edouard Klein
eers, Edouard. Kyle Andrews writes: > Edouard Klein writes: > >> Hi Kyle, >> >> >> Running >> guix shell r >> >> and then >> R >> >> will get you the C-c handling you want. > > Hi Edouard, > > I wrote another reply

Re: guix shell readline issue with R

2023-07-02 Thread Edouard Klein
Hi Kyle, Running guix shell r and then R will get you the C-c handling you want. There is indeed readline support with guix shell r -- R: up arrow to get history, c-E, c-A for end of line, start if line, etc. I think maybe the problem lies not with readline but with the way signals are

Re: lookup which file can be found in which package

2023-06-03 Thread Edouard Klein
My usual method is first: guix search, then: grep -ri in a checkout of the source, and last searching the web for the package name in other distros, and a bit of guesswork. It usually endup in a *-utils or *-tools package. >From a computer science standpoint this is an interesting problem. The

Re: Message by a novice

2023-05-14 Thread Edouard Klein
Hi ! First, drop sudo, guix can be run by unprivileged users once installed, and will only affect them. Great for shared environments ! anguriamelone--- via writes: > Hi to everyone. > > I am a novice in GNU Guix, so far I used Trisquel GN-Linux 9.0.2 (i686), but > at the end of April the

Can't setuid-program to a custom user

2023-04-11 Thread Edouard Klein
Dear Guix, I am trying to install a program that requires its own user, and to create a suid binary that will launch as this user, no matter who launches it. See lines 119 on of this file:

Re: Using an alternative python to build python modules

2023-02-21 Thread Edouard Klein
on. It is not clear to me how to write > one for an inferior python for use with > `package-with-explicit-python'. > > I will keep you posted if I make any breakthroughs. I'm really eager to > be able to replace conda with guix. > > Best Regards, > Kyle > > Edouard Klei

Re: Using an alternative python to build python modules

2023-02-18 Thread Edouard Klein
As an example in this line of thought, a long time ago I submitted a patch (since then reverted as it broke a lot of things) to use an obsolete version of a python module, which was the only one that worked with a specific module that hadn't updated its dependencies:

Re: Sourcing a script in phases

2022-12-26 Thread Edouard Klein
Hi, It's probably not the right answer, but for lack of time to find the actual solution when I faced the same problem as you, here is what I did: https://gitlab.com/edouardklein/guix/-/blob/beaverlabs/beaver/packages/python-xyz.scm#L191 #+begin_src scheme #:builder (begin

Re: Trivia question: What does the "G" in G-expressions stand for?

2022-09-17 Thread Edouard Klein
My bet would be on "Guix" ? jgart writes: > Hi, > > What does the "G" in G-expressions stand for? > > all best, > > jgart

Re: bug#55359: How do I extend openssh-service-type ?

2022-05-31 Thread Edouard Klein
Thank you both for solving this. I used a workaround for a while (rsyncing the keys to /home/user/.ssh/authorized_keys). Now I can confirm that the fixes work and I'm back to a declarative configuration of my server, which is awesome ! Cheers, Edouard. Ludovic Courtès writes: > Hi, > > Oleg

How do I extend openssh-service-type ?

2022-05-10 Thread Edouard Klein
Hi ! I'm trying to make sense of: https://guix.gnu.org/manual/en/guix.html#index-openssh_002dservice_002dtype #+begin_quote This service can be extended with extra authorized keys, as in this example: (service-extension openssh-service-type (const `(("charlie"

Re: A package search engine for a curated list of channels

2022-04-27 Thread Edouard Klein
That's a great idea :) I can lend a VPS with guix installed on it for testing and initial deployment, if you need it. I can't promise to help with development because of time constraints, but I'll follow this with eagerness. Unless I'm mistaken (which I very well my be), pulling from a channel

Re: was I hacked?

2022-04-22 Thread Edouard Klein
writes: > Well good news, jgart pushed them elsewhere in the thread: > > jgart writes: > >> Here are the repos of interest: >> >> https://git.sr.ht/~whereiseveryone/pjmkglp >> >> https://git.sr.ht/~whereiseveryone/authentification-channels >> >> w

Re: was I hacked?

2022-04-15 Thread Edouard Klein
Hi, Sorry about the noise, but I'm curious about this as well, and I think if this is indeed an attack that it would be brilliant to see that guix protected against it. I would like to document it. @jgart I can open a git repo for you and lend a hand if you need help pushing the strange branch

Re: I think thunked fields are breaking my previously working code

2022-02-27 Thread Edouard Klein
Thank you so much Ricardo, you have no idea how big of a thorn you removed from my side. I owe you one. Ricardo Wurmus writes: > e...@beaver-labs.com writes: > >> For example, given that "minimal-container" is an operating system, I >> can do the following: >> >> (set-fields minimal-container

Re: Running graphical apps with guix shell --container

2022-01-28 Thread Edouard Klein
It does work ! Thank you very much :) Luis Felipe writes: > [[PGP Signed Part:Undecided]] > Hi Edouard, > > On Friday, January 28th, 2022 at 10:11 AM, Edouard Klein > wrote: > >> I won't be specifically helpful, but I never managed to get chromium to >> run in

Re: Running graphical apps with guix shell --container

2022-01-28 Thread Edouard Klein
I won't be specifically helpful, but I never managed to get chromium to run in a container. It crashes almost immediately. If you ever manage it, I'd be happy to know the magic command that allows it. Cheers, Edouard. Luis Felipe writes: > [[PGP Signed Part:Undecided]] > Hi, > > I'm trying to

Re: password-store is broken in master but builds in version-1.4.0 (utf8 problem)

2022-01-15 Thread Edouard Klein
Wow. Talk about a rabbit hole. I'd never would have found that alone. I'll wait for the "tree-1" patch to appear on master. Thank you all for tracking and sidestepping this bug. Guix's cleanliness really is a canary for the quality of the whole ecosystem. That's awesome. Cheers Tobias

Re: GNU Guix maintainer rotation

2022-01-08 Thread Edouard Klein
Thank you Ludovic and Marius :) And good luck to Efraim ! Maxim Cournoyer writes: > Hello Guix! > > I'd like to bring your attention to a change to the current Guix > maintainers collective; in a nutshell, Ludovic and Marius are stepping > down from maintainer-ship while Efraim is joining. >

Re: Guix Home Entertainment SoC Media Server?

2022-01-07 Thread Edouard Klein
Hi ! It depends on how easy and integrated you want your experience to be ;) The raspberry pi is classic SoC to use for such a purpose, there are a lot of software and guides that you can use and take inspiration from for your project. In particular, the Retro-pi project will let you play

Re: Loading Common Lisp Libraries with GNU/Guix in a REPL

2021-12-10 Thread Edouard Klein
Hi ! I don't know the "correct" way to do it, but the way I do things is: Create a manifest.scm or guix.scm file in the directory. Here is an example manifest.scm file: #+begin_src scheme (define-module (osef) #:use-module (guix packages) #:use-module (gnu packages) #:use-module (guix

Re: Question about scripts in guix-home

2021-10-16 Thread Edouard Klein
Hi, Sorry I can't be more precise due to lack of time, but maybe invoking chmod on the .sh files in a gexp would work ? https://www.gnu.org/software/guile/manual/html_node/File-System.html #+begin_quote Scheme Procedure: chmod object mode C Function: scm_chmod (object, mode) Changes the

Re: setting up my own channel (for some personal packages)

2021-08-28 Thread Edouard Klein
Hi, I am not sure, but here is my try: I cloned your channel2 repo, and saw in emacs-hide-comnt.scm: (define-module (gnu packages emacs-hide-comnt) Modules names in Guile (in all schemes ?) must match the path, so either put emacs-hide-comnt.scm in gnu/packages, or change the above line to:

Re: creating a profile

2021-08-18 Thread Edouard Klein
Hi ! You can pass the --profile option to most guix subcommands. To install guile-commonmark in a profile, it would be a simple: guix install --profile=/tmp/toto guile-commonmark To install only its dependencies, the following bash one liner will do: guix install --profile=/tmp/toto $(guix

Setting TZDIR (was Re: A single reference to installed non-binaries)

2021-08-17 Thread Edouard Klein
Leo Famulari writes: > On Tue, Aug 17, 2021 at 04:01:15PM +0200, Edouard Klein wrote: >> See e.g. >> https://gitlab.com/edouardklein/guix/-/blob/beaverlabs/beaver/packages/scheme-xyz.scm#L68 >> >> Here, xlsxio and tzdir will be expanded to their full install path in

Re: A single reference to installed non-binaries

2021-08-17 Thread Edouard Klein
Phil writes: > Thanks for comments Edouard! Responses inline. :) > > > Edouard Klein writes: > > >> See e.g. >> https://gitlab.com/edouardklein/guix/-/blob/beaverlabs/beaver/packages/scheme-xyz.scm#L68 > > Ahh so wrap-program creates a script that set

Re: A single reference to installed non-binaries

2021-08-17 Thread Edouard Klein
Hi ! I side-step this kind of things by adding a stage in package-y that will find and replace all references to "bar" with the complete path to the installation path of package-x, or that will set the needed environment variable to the full path of the dependency. See e.g.

Re: Docker image sizes

2021-07-17 Thread Edouard Klein
Hi ! You can use guix graph to see what depends on what, and find out why a specific dependency is needed: https://guix.gnu.org/manual/en/html_node/Invoking-guix-graph.html I just invoked: guix graph elixir > /tmp/toto.dot and by manually inspecting the dot file I can see that e.g. webkit is

Re: package manager guix on Windows and OSX

2021-06-27 Thread Edouard Klein
> > Why Plan 9? May I ask? Plan 9 is awesome. What the whole industry is barely managing to achieve with containers and VMs, Guix does somewhat correctly with namespaces, but Plan 9 had all this in its DNA, in a cleaner implementation 30 years ago ! By default, a process in Plan 9 only has a

Re: package manager guix on Windows and OSX

2021-06-25 Thread Edouard Klein
Hi ! The real problem will not be the languages (guile or C++), but the system calls used by Guix. Guix makes use of some recent (less than 2 decades) and somewhat advanced features of the Linux kernel, such as namespaces. To port Guix to another operating system such as BSD (including OSX),

Systemd guix containers: unable to execute Permission denied

2021-06-19 Thread Edouard Klein
Hi, I'm running a container using a systemd unit. This unit calls a script that call guix system container and calls the returned script. When I launch this script by itself, everything works as expected. When I launch this script with systemd, I can launch any command except as root in the

Re: Find location of installed package in /gnu/store

2021-05-15 Thread Edouard Klein
Hi ! This is where G-expressions will help you :) Basically the path you need does not exist in the same "strata" as the code of the package. The following code will define a build-gexp function that evaluates a G-expression and prints the resulting directory in the store. You can try it in

Re: How to lower a record to the build code ?

2021-05-07 Thread Edouard Klein
Dear Christopher, I can't thank you enough, your idea of "ungexp[ing] the record access bits" is what got me out of the tarpit. You can see the resulting code here, which will hopefully clear the misunderstandings generated by my oversimplification of the minimal nonworking example:

Re: Can't bind to port 80 from inside a Guix container

2021-04-28 Thread Edouard Klein
Dear all, I solved my problem by simply unpriviledging all ports on the system: # echo 'net.ipv4.ip_unprivileged_port_start=0' > /etc/sysctl.d/50-unprivileged-ports.conf # sysctl --system Now anybody can bind to any port. I wish we were on Plan 9 where filesystem permissions applies to the

Re: Environment of a shepherd service

2021-04-27 Thread Edouard Klein
Thank you Maxime for your answer :) Maxime Devos writes: > e...@beaver-labs.com schreef op zo 11-04-2021 om 21:31 [+0200]: >> Dear fellow Guixers, > >> [...] >> But, when I try to run it with shepherd, it fails because it can't find >> flask (a dependency of the software, which I've put as a >>

Re: Running LAMP under Guix on a foreign distro - Debian

2021-04-15 Thread Edouard Klein
Hi, I'm working on something similar, but with nginx. Basically you want to make an operating-system definition, where you can orchestrate all the layers of your stack, and then you can run it using `guix system container` with the added benefit of container isolation. I'll make a quick writeup

Re: Environment of a shepherd service

2021-04-14 Thread Edouard Klein
ctor) > #:respawn? #t)) > (register-services syncthing) > > (start syncthing) > > As with any other shepherd service it is defined and registered, and in > this case it will start automatically. When the file is loaded by > shepherd after being discovered by scandir everything work

Re: Environment of a shepherd service

2021-04-13 Thread Edouard Klein
Hi, So I looked at the source and I understand that there's no way around having only PATH=/run/current-system/profile/bin as the sole environment of a service (which makes me wonder how anyone is running any service in GuixSD, don't you need any env variables ?). I tried to define a trivial

Re: Error with guile function format

2021-03-12 Thread Edouard Klein
Dear François, Ricardo and divoplade, This was indeed the issue, and the correct fix. Thank you for your explanations. I'm not familiar with the notion of ports, coming from languages that don't have them, but I see now how useful they are ! They're like the standard input/output of the shell,

Re: Running Substitute Server over https

2021-02-06 Thread Edouard Klein
Hi phil, Not answering your question directly, but last time I wanted to secure the connection between a client and a substitute I used an ssh tunnel: # On the server guix archive --generate-key ssh root@client guix archive --authorize < /etc/guix/signing-key.pub guix publish& ssh -N -R

Re: ebook reader recommendations?

2020-12-04 Thread Edouard Klein
Pierre Neidhardt writes: > Hi John, > > Thanks for the hint. > I suppose this is the product you were talking about: > > https://remarkable.com/ > > Can you expand on how "hackable" it is? Can we replace the software? > If not, what kind of access to the OS do we have? Any link? You

Re: Port forwarding for Guix containers

2020-11-21 Thread Edouard Klein
zimoun writes: > Hi, > > On Fri, 20 Nov 2020 at 19:26, Christopher Baines wrote: >> Zhu Zihao writes: >> >>> I found guix container "created by `guix environment --container` or >>> `guix system container`" is very useful to isolate some service. But >>> it only supports fully isolated

Re: warning: failed to install locale

2019-01-17 Thread Edouard KLEIN
I had the same problem, which was solved by installing glibc-utf8-locales in root's profile and adding the export line to root's ~/.profile, which fits Ricardo's explanations. Le jeu. 17 janv. 2019 à 21:56, Quiliro Ordonez a écrit : > Thank you for this straightforward answer Ricardo. I post

Data dirs and shepherd services

2018-11-11 Thread Edouard KLEIN
Hi guys ! I'm packaging a piece of software that is due in the next few days and I'm cutting corners everywhere. I'll come back to it later and clean things up, in the process I've packaged some free software lacking from the distribution, that I'll send the patches for. In the meantime, I have

Re: Using 'guix system disk-image' on a non-GuixSD OS

2018-10-25 Thread Edouard KLEIN
`(("edouard" ,(local-file "edouard.pub")) ("root" ,(local-file "edouard.pub" (permit-root-login 'without-password) (port-number 22))) %base-services))

Using 'guix system disk-image' on a non-GuixSD OS

2018-10-25 Thread Edouard KLEIN
Hi all, I do not know whether the "guix system disk-image" command is supposed to work on a non GuixSD system. If it is, then I'm running into an error while trying to create a disk from a system declaration on my Arch Linux OS. I run: $ guix system disk-image --fallback config.scm with