IRC channel logs
2026-04-07.log
back to list of logs
<jlicht>dthompson: I have not tried running non-lts node for quite some time, but what I'm sitting on has: v8: '13.6.233.17-node.44' <dthompson>jlicht: I'm gonna try a non-bootstrapped build of 25.9.0 and see if it's new enough for me. then I'll try your updated lts build when available. :) <dthompson>I suspect the lts will only have backported v8 stuff rather than genuine updates but I'm not entirely familiar with how node treats v8 updates in their lts series <jlicht>dthompson: usually yes, but v24 only went into maintenance mode around Oct 15, 2025 so who knows if it might work :-) <dthompson>eager to try it when you have a build! I hate building node... takes 3 hours on my laptop and I don't have a workhose desktop/server to offload to <pfd>It's the first time I'm trying to add another user to Guix System. Following the manual I edited this next user in the /etc/config.scm file, with an additional line: (password (default: #f)) . <pfd>After saving the file and rebooting, the user hasn't been created. I don't mind setting the password with passwd, but the user hasn't been created. <pfd>I also tried adding the user with useradd after the config.scm edit and root. Thinking one might have to do both, however after the next reboot the useradd addition was eviscerated. <pfd>When installing Guix on top of another Linux distro, there's a step which generates about 10 placeholder accounts. I wonder if this also happens during a Guix System install. <trev>pfd: you have to `guix system reconfigure...`, not just reboot <apteryx>it'd be nicer if our nss configuration was an extendable service <PotentialUser-84>hello everyone! Can you guys point me in the right direction for achieving the following goal: when I kill emacs (C-c C-c) then I want to shutdown my system. I suspect the neat way to achieve this is with Shpeherd <adanska>Hmm.. what session manager are u using? elogind? <adanska>u could probably just hook the kill-emacs function with a call to `loginctl shutdown` or something like that... <adanska>Hmm.. so `loginctl shutdown` doesnt do anything? <PotentialUser-84>adanskaagreed, but I thik the best way is with shepherd. I think shepherd is there for that <PotentialUser-84>@loginctl should work, but I usually just do plain shutdown. I think elogind in fact links loginctl shutdown to plain shutdown so its the same <adanska>unless emacs is being managed by shepherd, then i dont actually agree with u on that... <adanska>No, its just pid 1. it manages all *services*, though. Or at least shepherd services. <PotentialUser-84>adanskain fact I have a sister question: start emacs automatically upon login to my tty <PotentialUser-84>i also gave for granted this would be shepherd but im starting to doubt it <adanska>PotentialUser-84, To answer your previous question, shutdown is a program provided by shepherd. By invoking `shutdown` you are effectively using shepherd to do this. To your other question, i think the RDE project has a home service that manages an emacs daemon. This is certainly possible. <adanska>PotentialUser-84, the shutdown procedure is achieved with invoking the `halt` action on the root shepherd service. However, there is no good reason to send this action to shepherd directly when you can just call loginctl shutdown. <adanska>if ur curious, check out on the shepherd repo `modules/shepherd/scripts/halt.scm` <adanska>its cool to look at the internals here <PotentialUser-84>adanska thanks. re: rde do you have a reference/link? is this done with guix config ? does shepherd have nothing to do with this? <PotentialUser-84>thanks adanska . let me ask you something: *what* or *who* is starting emacs upon login? <adanska>well, in the case of this rde service, it is a home service. The root shepherd (pid 1) starts the home shepherd, which then has this emacs service, starting the emacs daemon. <adanska>i'm not sure actually if the home shepherd starts upon login, or if it starts at startup after the root shepherd starts it. <adanska>if u look at the guix source at the code that handles the creating of the user shepherd, you will probably find the answers you seek <efraim>does anyone know of an example of log-ration in a home service that uses %user-log-dir ? <Rutherther>apteryx: wdym about NSS configuration as extendable service? Currently you just install a package with a certificate and it will be added, is that problematic in some way? <bjc>extending nss with modules is a pain in the butt currently <bjc>biggest problem is there's no decent way to order them via composition <PotentialUser-84>can I start emacs upon login without using rde service? seems a little of an overkill <PotentialUser-84>hey does someone know how to start emacs on Login to tty? and if this has anything to do with shepherd? <PotentialUser-84>i mean instead of entering emacs by typing myself "emacs" it does so automatically <PotentialUser-84>but there might be a neater way than using bash-profile. I don't really want to execute a command per se, even if it kinda looks like it boils down to it; I wanna enter emacs <ieure>PotentialUser-84, Run emacs at the end of your shell init files. FYI, I love Emacs, but I think this is not a great idea. <PotentialUser-84>ieure thanks for the instructions. in poractical terms does this mean home-bash-configuration <PotentialUser-84>ps why not great? can I not execute shell commands from within emacs need there be? <ieure>PotentialUser-84, You want to use the bash-profile field of home-bash-extension, I think. <ieure>PotentialUser-84, If you mess up the configuration, when you start a shell inside Emacs, it will start another Emacs. If you SSH into this box, it will start Emacs, which could be an issue if you want to do that from inside another Emacs, or use Tramp's SSH transport. Lots of surprising things can happen. <PotentialUser-84>ieurehold on but isnt that the difference between bash-profile and bashrc ? <bjc>you'd be better off making your shell emacs in /etc/passwd, imho <PotentialUser-84> List of file-like objects, which will be added to .bash_profile. Used for executing user’s commands at start of login shell (In most cases the shell started on tty just after login). .bash_login won’t be ever read, because .bash_profile always present. <PotentialUser-84> List of file-like objects, which will be added to .bashrc. Used for executing user’s commands at start of interactive shell (The shell for interactive usage started by typing bash or by terminal app or any other program). <bjc>there's a ‘shell’ field of /etc/passwd, which is what's used as the final step of login <bjc>anything can be a shell <bjc>emacs definitely can be <ieure>PotentialUser-84, Are you on Guix System? <ieure>PotentialUser-84, Okay, you need to use the shell field of your user-account record in your operating-system configuration. `(guix)User Accounts' has an example to set the shell to zsh, follow that, but use Emacs. <PotentialUser-84>while I try , how about when I wanna shutdown my system (or reboot or suspend to ram)? ieure <ieure>PotentialUser-84, Sorry, I don't understand the question, are you asking how to shut it down or reboot? <PotentialUser-84>ieure the question is once I made that edit you recommended, i will be inside emacs as soon as i login. hence, when I wnna shutdown or reboot or suspend to ram my laptop, what do I type? <ieure>PotentialUser-84, `sudo halt', `sudo reboot', etc. Same as always. <bjc>after you reconfigure, a logout and login will suffice <bjc>(for the shell change) <bjc>if your shell is emacs, when you quit emacs you log out <PotentialUser-84>yeah but then how do i shutdown? once im logged out i cant shutdown, and before i logout I need to close emacs before shutdown <bjc>you can do it as another user, or ctrl-alt-del often works <bjc>or the button on the chassis <bjc>though i don't think it matters if you shut down emacs first. part of the shutdown process will be asking emacs to close itself <PotentialUser-84>I dont like to have to change user for shutting down and I dont like to artifically close emacs by shutting down... (for instance it wont ask me to save modified buffers) ieure bjc <ieure>PotentialUser-84, Run the command from inside Emacs. <ieure>PotentialUser-84, Emacs is your shell now. Just like you'd run `sudo halt' from bash when bash was your shell, now you run it from Emacs. This is literally what you asked for. <PotentialUser-84>ieure good point, I didnt worry about bash closing before I run shutdown. good point. <ieure>PotentialUser-84, That's what's in the shell field of /etc/passwd. eshell is a program you run within Emacs, just like `ls' is a program you run within bash. <ieure>PotentialUser-84, It will not. There's no eshell binary to run. <ieure>PotentialUser-84, I suppose you could write a wrapper script, if you wanted. Or configure Emacs to launch eshell automatically when started. <ngz>I notice (data.)qa.guix.gnu.org are very flaky. <ieure>ngz, All Guix infrastructure is embarrassingly unreliable. <ngz>Well, yes. But sometimes, it is more unreliable than others. <ieure>Yes. But it's never really stable, either. <ngz>Luckily, bordeaux.guix.gnu.org/activity is alive. So I can waste my time looking at all those packages being built. At least, something happens behind the curtain. <ngz>Speaking of Activity page, I noticed that when building a package with a deprecated alias, it always refers to the deprecated name. <ieure>Every Emacs volume control thing I try is just awful :( <ieure>Recently switched to pulseaudio-control, it gets into some wacky state where it'll lower the volume, but refuses to increase it. <ieure>Was using EMMS before that, it doesn't have a mute toggle and loses track of which sink it's controlling when you switch. <ieure>Anyone have a thing for this they like, which functions? <lilyp>daily reminder that Emacs is a Lisp machine first, text editor second, and operating system third <ieure>Third or not, it's a better OS than most these days. <lilyp>fair point, I did use Windows as a bootloader for Emacs back when I had to <ianc>I've been using gnome with a hidden top panel to boot into Emacs <ianc>I'd prefer plasma, but it was slow and buggy on guix <ianc>How do you handle brightness, volume, screen locking, etc in EXMA? <ianc>ieure: interesting, blight is a cool name <ieure>ianc, I like a punny self-deprecating name. Have written Emacs stuff called blight, diss, lemon, and debase. <Rutherther>you can always just use something like pavucontrol <ieure>Rutherther, I do, but it's irksome for basic volume up / down / mute stuff. Want hotkeys for that. <ieure>I still want to write a Network Manager frontend in Emacs, but it's been a low priority. <ieure>Just run nmtui in a vterm mostly. <Rutherther>oh sure, I always just used amixer for volume control through bindings <Rutherther>for brightness I use brillo, since it supports percentage recalculation <ieure>What is "percentage recalculation?" <Rutherther>had to check... it's exponential so it's more consistent to the eyes <Rutherther>the steps are much more gradual at the lower end especially <janneke>ieure: i'm using emacs-desktop-environment with exwm <PotentialUser-84>ieure I ve been looking for a network manager for emacs for a few days now! everything is very old and most probably obsolete. I second you on this very much; very much needed <ieure>PotentialUser-84, If you're motivated, I wrote a package to make D-Bus access from Emacs nicer, which will make the task much easier. emacs-debase, it's in Guix already. <ieure>And emacs-discomfort is a feature-incomplete udisks2 interface for Emacs which uses it, if you need example code. <ieure>It's... minimally functional. Not completely useless, but not as useful as it should be, either. <PotentialUser-84>lemme bring sth else up right now: can I redirect all messages that guix sends to tty1 in the emacs *messages* buffer? ieure <kestrelwx>Oh, `make check` can hang, right? Think I'm seeing `check` phase hang for `guix`.