Re: guix pack and flatpak
At the moment, I do not believe that it can. But it would be cool if it could... Thanks, Joshua P.S. I really probably shouldn't be responding to guix emails right now. I'm still working on my night audit shift, and I'm so sleepy I can barely write a sentence. :) May 2, 2021 7:14 PM, "Andy Tai" wrote: > a question hopefully not too wild: Guix can generate Docker image via > > guix pack > > Only knowing flatpak in brief terms, can guix software bundle > mechanisms be used to create flatpak? > > -- > Andy Tai, a...@atai.org > Year 2021 民國110年 > 自動的精神力是信仰與覺悟 > 自動的行為力是勞動與技能
Re: Anyone running Guix on the pinephone?
On Sat, May 01, 2021 at 10:01:39PM -0400, Christopher Lemmer Webber wrote: > I see the cookbook now mentions the possibility of running Guix on a > pinephone... is anyone actually doing it? Mind posting your experiences > and setup? > > (Doesn't have to be as a phone necessarily... I'm more interested in > using it as a lightweight portable computer. But a phone would be nice > too.) > I have a pinephone that I play with occasionally. I haven't yet installed Guix (package manager, not planning on OS any time soon) on it, I mostly want to see what I can get to work without worrying about integrating packages from Guix too. The display is 720x1440, but that's a bit of a lie since somewhere between 600 and 700 pixels are lost to the on-screen keyboard. (I have the KDE plasma mobile one). I tried setting up KMail for email on the phone and I almost got it set up, but I don't have an existing config to copy over and setting it up on the phone is difficult with the aforementioned screen size. It's running wayland so I can't just use 'ssh -X' to pull it up on my desktop and setup kmail. I will agree with everyone that the phone is getting better with each incremental software release and feels faster with each passing week. On the other side, as a more computer oriented device, I love ssh-ing into my phone and treating it like a normal computer. Unfortunately I had to give my KVM switch to my kids (they're now switching between my old desktop and an N64) so I haven't been able to hook up the pinephone to my monitor yet. As a last thing, I have used my kickstarter-era pine64 as a build machine for Guix for many years now and I found that under load it's more stable running Debian than running Guix. -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted signature.asc Description: PGP signature
Re: guix pack and flatpak
On Mon, May 03, 2021 at 09:14:47AM +, jbra...@dismail.de wrote: > At the moment, I do not believe that it can. > > But it would be cool if it could... > > Thanks, > > Joshua > > P.S. I really probably shouldn't be responding to guix emails right now. > I'm still working on my night audit shift, and I'm so sleepy I can barely > write a sentence. :) > > May 2, 2021 7:14 PM, "Andy Tai" wrote: > > > a question hopefully not too wild: Guix can generate Docker image via > > > > guix pack > > > > Only knowing flatpak in brief terms, can guix software bundle > > mechanisms be used to create flatpak? > > > I've been saving this¹ link for a while now, it shouldn't be Too Hard™ to teach 'guix pack' to export to a flatpak. I would specifically look at the flatpak.yaml portion in the FlatpakTemplate and look through the flatpak documentation about taking an existing directory (guix pack --format=tarball HINT HINT) and shoving that into a flatpak. ¹ https://openbuildservice.org/2021/02/18/introducing-flatpak-builds/ -- Efraim Flashner אפרים פלשנר GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted signature.asc Description: PGP signature
Re: Guix' SWH code hates me
I generated a private package for guile-oauth over the weekend: Using this in native-inputs: ("guile" ,guile-3.0) I included this in inputs list: ("guile-json" ,guile-json-4) Im too sophomore with regards to packaging. I felt that searcing the aggregate package repositories useful for reverse engineering. For example, I discovered the integer on the json descriptor for other packages. Making my package more explicit seemed to help for me. Jonathan Leo Prikler writes: > I'm currently trying to update the package recipe for guile-wisp to the > newest version, but can't get it to download. Inside a `guix > environment guix`, using `./pre-inst-env guix build`, I get the > following. > > building /gnu/store/001p94i7q8kks3pngjah0b2v4fzl3npr-module-import- > compiled.drv... > [ 1/26] Loading './guix/base16.scm'... > [ 2/26] Loading './guix/base64.scm'... > [ 3/26] Loading './guix/build/download-nar.scm'... > [ 4/26] Loading './guix/build/download.scm'... > [ 5/26] Loading './guix/build/hg.scm'... > [ 6/26] Loading './guix/build/syscalls.scm'... > [ 7/26] Loading './guix/build/utils.scm'... > [ 8/26] Loading './guix/combinators.scm'... > [ 9/26] Loading './guix/ftp-client.scm'... > [10/26] Loading './guix/progress.scm'... > [11/26] Loading './guix/records.scm'... > [12/26] Loading './guix/serialization.scm'... > [13/26] Loading './guix/swh.scm'... > ;;; Failed to autoload swh-download-directory in (guix swh): > ;;; no code for module (json) > > I know that Guix proper would have access to guile-json, but the pre- > inst-env one doesn't. How do I make it so it does? -- Jonathan McHugh indieterminacy@libre.brussels
Re: Any way to boot Guix with root partition elsewhere?
A shot in the dark - but I know that there have been some activity with regards to using Lua in the kernel: => https://github.com/luainkernel => lwn.net/Articles/830154/ If thats not helpful hopefully it can give you some ideas. Has Guile done much activity interacting with the kernel? Jonathan Vladilen Kozin writes: > Well, I went ahead and asked the help-g...@gnu.org but I'm thinking it > maybe difficult or impossible to solve. There may actually be the > "Guix" way to solve this. Here are my current thoughts. > > Problem (not specific to Guix): > - we install Guix onto NVMe SSD drive that's plugged via PCIe adaptor, > - BIOS doesn't make those available to boot, > - so you can't boot directly off of that SSD, > - but worse, Grub on any visible drive e.g. USB won't find that SSD either. > > IIUC what "solutions" I've seen, they amount to booting off e.g. USB > stick where you have your /boot/grub with grub.cfg BUT with actual > kernel and initrd you want to boot copied over from that SSD drive AND > with whatever kernel parameters your installation suggested. So, I > think roughly this amounts to copying your Guix system's current > kernel and initrd over to USB stick as well as its /boot/grub/grub.cfg > and maybe tweaking it a bit to point to this copied kernel. Or smth > like that. > > This obviously defeats the main value proposition of Guix, cause > suddenly no "boot into another system instance", no "roll back". > > IMO good solution would be to have Grub load just enough of whatever > kernel is doing to find that drive and make its contents available. I > doubt one can do that, but maybe one can boot into some kernel and > initrd and then "chain" load the Grub on that SSD? I've no clue how to > do that, but I'm sure its possible: kernel is code running in memory, > surely it can "load" and "pass control" over to Grub or smth. If > anyone knows, do tell. > > Guix way of solving this could be by coding the above step explicitly > into your config.scm, so that your `guix system reconfigure` having > built everything, copies new kernel and initrd over to USB drive in > addition to earlier kernels etc along with appropriate grub.cfg > (essentially mirroring that bit of your OS on the SSD). Brittle, but > at least you have your earlier systems etc etc. > > The whole "boot" business is at the edge of my understanding of how > systems bootstrap and OMG this whole territory is full of arcane > sacred knowledge spread all over the interwebs and most of what you > find is nonsense. Once people who actually know how the sausage is > made retire or die, our civilization is doomed :( > > On Sat, 1 May 2021 at 04:07, Joshua Branson wrote: >> >> Vladilen Kozin writes: >> >> > Hello guix. >> > >> > Is there a way out of this predicament? I can see two options. >> > (1) can some Linux distro/bootloader do the FreeBSD trick: start on >> > USB but then chain-boot Guix off that SSD? IIUC grub's chain-boot is >> > of no help here, cause it simply won't even see that drive; >> > (2) install and run Guix off USB but somehow ensure that "IO heavy" >> > bits are mounted from that SSD. There's gotta be some (file-systems >> > ...) combined with the way I `guix system init config.scm /mnt` (or >> > rather what else I mount under /mnt where) that would achieve this? >> >> Hmm. I'm way out of my depth here... >> >> I think number 1 is your "best" bet. I've no idea how to do that. >> >> Number 2 is probably your "easiest" option. /boot/ should be put on the >> usb, and I suppose that the / should be on the SSD...You would install >> this way. That's probably how I'd do it. Or rather that is how I would >> try to do it. :) >> >> >> This is probably a silly idea...would linuxboot.org help? You use linux >> to boot? >> >> >> Another silly idea...could you embed linux in your flashrom? I think >> that osboot.org is planning on embedding linux in the flashrom...That >> would be pretty awesome. My flashrom is only 8MB though... >> >> >> Best of luck! >> >> Joshua >> >> -- >> Joshua Branson (joshuaBPMan in #guix) >> Sent from Emacs and Gnus >> https://gnucode.me >> https://video.hardlimit.com/accounts/joshua_branson/video-channels >> https://propernaming.org >> "You can have whatever you want, as long as you help >> enough other people get what they want." - Zig Ziglar -- Jonathan McHugh indieterminacy@libre.brussels
How to run a Docker image as a Guix System service?
Hello Guix! Is it possible to run a Docker image as a Guix System service? For example, consider Gitlab. Unfortunately, there is no package declaration of Gitlab for Guix yet. But let's assume you are impatient and you want to run Gitlab on Guix System as soon as possible. Is it possible for you to use Gitlab's Docker image as a Guix System service? I guess, in the system declaration, I would imagine it to look similar to this, ideally: (operating-system ;; … (services ;; … (docker-image-service "gitlab/gitlab-ce"))) Mekeor