<dcunit3d>i just reconfigured to use elogind with greetd, but all my terminals except the sway terminal are owned by root, so when i go to use emacsclient from another VTY, i get a permission denied.
<iyzsong>dcunit3d: how the 'emacs --daemon' was start, i think it should be started within a wayland session (under sway)
<dcunit3d>iyzsong: i started it in a tty, but they are owned by root now. i figured out my issue by the way: i had hastily merged in some bash functions that were hyphenated into my profile and they were preventing the server from ever getting to .xsession
<dcunit3d>i still have to move a lot of stuff over before i'll have a window manager unless i switch back to Z11
<dcunit3d>so if i'm using GNU screen, then one of its sessions can run the emacs daemon, and others can run the client, but on other tty's i get "permission denied"
<dcunit3d>i will likely just use emacs tabbing functionality and screen on other tty's.
<dcunit3d>I use it a bit too often, but i'm not quite sure how things like reconfiguring my system will be evaluated if i just use `sudo -E`
<iyzsong>heh, i'm not quite sure about that too, it seems will use ~/.config/guix (for checkout cache / channels) from the user instead of root..
<dcunit3d>when i'm using a local checkout how do i install the packages into my system?
<dcunit3d>i think i can run `guix package -L $path -i $pkg` and i've looked at at the `guix shell -e '(@@ ... )` and '(list (@ ...))' syntax, but these invocations where selecting a different version of poetry than was being used in the build
<dcunit3d>and i guess i would prefer to pull some of these packages into a manifest
<dcunit3d>i mean pull them into a profile using a manifest
<spacecadet[m]>is there a way to build a derivation of a channel besides running guix pull?
<dcunit3d>spacecadet[m]: what have you tried so far?
<spacecadet[m]>I tried looking and the docs for guix build, you can specify a file but it only takes files with package definitions. I also tried messing with guix pull -L and --commit but neither worked for what I wanted
<dcunit3d>i kinda wonder if you can just run 'guix build` on the channel checkout. i'm looking at ./guix/scripts/pull.scm to see how it interfaces with channels
<spacecadet[m]>the issue with --url is the same as --commit, it expects the guix channel, but I'm working on my own
<dcunit3d>yeh i'm close to dealing with some similar issues.
<dcunit3d>the define-command for guix pull is somewhat flat.
<dcunit3d>i'm trying to figure out whether building as a derivation would cause other problems
<spacecadet[m]>yeah I'm not sure, there is the --dry-run flag which is half of what I want. I was able to brute force through the problem I was having with the repl though
<dcunit3d>it creates a build handler, then creates instances of each channel, then iterates over those to prepare objects to pass to the build handler (via its syntax, if i'm getting this right)
<spacecadet[m]>hmm. Also --dry-run isn't what I want, it's "do NOT build derivations"...
<dcunit3d>so i think there's probably some way to call build on a channel as a derivation, which would get messy if your channel makes lots of references to others. it would seem that doing things like this the wrong way may screw up your /gnu/store
<spacecadet[m]>I see. Thanks for looking into it, guess I'll keep hacking with the repl.
<dcunit3d>what are you doing on the repl? spacecadet[m]
<dcunit3d>spacecadet[m]: are you using macros or set!
<dcunit3d>i'm not sure i can help much, but i still need to learn more about all this bc i'm moving a bunch of code to a channel and it's a mess at the moment. i understand it from a high level, but then i probably don't know what i don't know
<spacecadet[m]>I'm not sure, the question is greek to me, I'm still very new to guile. I was able to resolve most of the errors and deferred dealing with the rest, so the pull finishes now, but it is something that would be nice to find a solution for in the future.
<bdju>http://ix.io/4wA1 here is my config.scm in case anyone can tell me what's wrong, the new part is the swaylock-pam-service-type
<bdju>should it go outside my services block even though it's for a service..?
<bdju>guess I'll completely kill sway and leave my computer at a logged out TTY since I can't lock my screen anymore and I'll check back later (IRC is running on another machine at least) in hopes of someone able to help, but things are looking rather grim so my hopes aren't high. this *really* should've been treated more seriously and rolled back. there's not much worse to break than a screenlocker, imo...
<cbaines>the guidance on what to do when things go wrong does not include name calling bdju
<bdju>I'm not sure you're using the term name-calliny in the usual way, I literally used someone's name
<cbaines>from the system configuration you posted, swaylock was setuid, so it is used in your system configuration
<bdju>hm okay. you'd know better than me I suppose
<cbaines>I'd add the bit I shared in to your system config, restore the setuid-programs (changing swaylock to swaylock/no-pam) and reconfigure to that
<bdju>should I have swaylock in my system package list then or will adding your new section take care of that? and does the block you pasted go in with my packages or elsewhere? I had issues earlier trying to add a new service in the services section with a similar define-public line
<cbaines>put the swaylock/no-pam definition just above (operating-system
<bdju>but also to see the error I'm just running `swaylock` in a terminal
<bdju>so the keybind currently does nothing and I get the previously noted error when ran from a shell
<jpoiret>tbh, the easiest solution would be to remove the screenlocker-service-type, remove your swaylock variant, and then define the swaylock-service-type that benjamin mentioned and finally use it in your services by adding (service swaylock-service-type)
<bdju>I don't see a screenlocker-service-type anywhere in my system config file
<bdju>and I use %base-services rather than %desktop-services due to some issues with GDM
<cbaines>bdju, did you change the setuid-program bit in your system configuration to use swaylock/no-pam ?
<cbaines>and did the reconfigure complete successfully after you did that?
<bdju>no I did not change that line aside from uncommenting it again
<cbaines>bdju, right, so you're still trying to use swaylock with pam
<bdju>is the bit after file-append what I should change?
<dcunit3d>when guix or guix home do compose on fairly simple services, do these result in derivation objects being created? or would a set a bash aliases just compose into a script using string concatenation?
<rebbar>anyone using guix shell and direnv? I'm wondering how to setup a guix shell container for node.
<cbaines>guix environment/shell and direnv are easy to integrate
<rebbar>I'm using the guix shell --search-paths approach. But this way node does not run in a container, right?
<cbaines>yep, direnv is just about setting up the shell environment variables
<rebbar>the other approach I'm trying is using guix shell node -CNP -- npx gulp for example
<rebbar>but this way emacs is unable to access the environment. I was wondering if there was a way to have the best of both approaches. Or how other people use node in guix shell in general.
<ieure>mirai, Describe what the values returned are. I can't tell you what that is, though, because the docstring doesn't say.
<ieure>"Returns values: first-value, a <whatever that is>; second-value, a <whatever that is>"
<mirai>it can be a IP + Port pair or a path + #f (in case it happens to be a unix socket or an abstract socket)
<ieure>"For a network connection, returns values for the host and port. For a local connection, returns values for socket path and #f."
<ieure>I think those two return values are semantically different enough that multiple values isn't really the right way to do this.
<ieure>Seems like you're using #f as a placeholder in the socket case. I'd suggest either: returning multival host+port, or single-value path; or returning some kind of structure which encapsulates that data and declares whether it's a local or remote connection.
<ieure>These are micro-suggestions, I have no idea what your macro context is like or if those are reasonable suggestions within them.
<mirai>ieure: I've thought on using a record-type with 3 fields: type, host (which doubles as path) and port
<patched[m]>I have a package which puts c++ code in include. How do I make this accessible for gcc? It is in ~/.guix-profile/include, but if I add that path to CPLUS_INCLUDE_PATH I instead get issues with gcc finding other libs. Besides, I have a suspicion this is not the "correct" way to do it...
<PotentialUser-79>hey. so, whenever I update my packages with "guix upgrade" I can't pass the login screen of guix. I just loop there, unable to access my stuf. I was able to rollback, but now I'm trying to see how to debug this. Anyone an idea how I could approach this? I was thinking of updating like the first half of my packages, then if it's stuck it would mean
<PotentialUser-79>the problem lies with one of those, and do this ad nauseam to spot the problematic package. but I don't know how to do this, and I don't know if there is a simpler way
<mirai>apteryx: do you have a fancy syslog configuration in place?
<mirai>unrelated, any updates to the VNC XDMP situation?
<minima>hi, i'm experiencing an extremely frustrating heisen-issue on my system (guix on a foreign distro); at times my browser won't load specific pages but works fine with others; after a couple of minutes it works fine again, on all pages
<minima>when that happens, i seem to have normal connectivity (e.g. I can ping the external world just fine)
<minima>(i can also ping that particular server that i'm not able to connect to via the browser)
<PotentialUser-79>apteryx thanks for the link. Hm I don't know. My desktop environment is xfce, otherwise no idea what my login manager is, I guess it's the default for guix?
<minima>honestly i'm not sure this has anything to do with guix (guix on a foreign distro on this machine)
<minima>it's frustrating because it's so hard to debug
<apteryx>PotentialUser-79: default is GDM (gnome desktop manager)
<apteryx>minima: perhaps a DNS caching problem? perhaps installing the nscd service could help
<apteryx>mirai: sorry, I haven't had the time to look at the VNC service yet
<apteryx>I suspect they must have added a new switch or similar (was the tigervnc package updated?)
<minima>apteryx: it very much "feels" like a caching problem, yeah, let me have a look at ncsd - thanks!!
<ngz>Whenever I try to push something, I get "Failed to autoload channel-build-system in (guix build-system channel) / no code for module (git)"… and "failed to load 'gnu/services.scm'". Maybe a make clean-go is in order.
<mirai>the symptom is that of an incorrect order, though idk if it's a matter of reordering the lines there or if this is some race condition
<mirai>the test is (mostly) correct, IPv6 should really work
<degauss>Hi! Not really a Guix question, rather an Emacs one: since my last update (Guix commit 14c03807), emojis having the "VARIATION SELECTOR-16" (e.g. 🗒️) show with a very, very wide (some 17 chars) cursor under X, while the non-emoji version (e.g. 🗒) has normal cursor width. Does this also happen to any of you, or is it some bad setup of mine? (You can copy/paste the example characters to test.)
<mirai>I say mostly because I see inet-pton used instead of getaddrinfo (pet peeve of mine)
<mirai>though I don't understand enough of how the whole thing is pieced together to properly confirm it
<neshamon[m]>Hey guys I was trying to add some services to base services, but I seem to consistently get the error, more than one target service of type 'some service type'
<neshamon[m]>I've read it's because of service extensions or something, but I'm not extending any services in my config, which leaves me a little confused
<davidl>I had a thought regarding a feature I have been thinking about: some projects provide a guix.scm file which, if they want to, can make sure themselves are updated with correct dependencies and guix build recipe. If there were a transformation option like --use-upstream-builder or similar, that would be cool as it could provide a quick way to solve build problems. Plenty of projects already provide a systemd service for example, why not provide
<davidl>This is what I want to be able to run: guix build hello --with-git-url=hello=<someurl> --use-upstream-builder=hello
<degauss>neshamon[m]: I saw that error mentioned in https://issues.guix.gnu.org/55391#3 recently, along with the solution for a particular service (SLiM) which required duplicating some configuration, then ensuring that you "modify-services" to delete the existing service which causes the conflict.
<vagrantc>git commit --ammend ... also requires passing --no-gpg-sign
<TylerWolf[m]>Hello, I am having an issue as a binary that needs libsgtk-3.so.0 and libgdk-3.so.0 these are listed as not found and I cannot find where they should be. I have patched other libraries needed but can only find those for gtk4 on my system, not gtk3. Does anyone know where I can find these libraries path so I can add it to LD_LIBRARY_PATH? Thanks!
<vagrantc>well, with agressive use of --no-gpg-sign ... i was able to very and eventually sign and push a change...
<vagrantc>huh. it seems to respect unsigned commits on other repositories ...
<vagrantc>so somehow it is aware that i am working with a guix git repository?
<TylerWolf[m]><TylerWolf[m]> "Hello, I am having an issue as a..." <- I have been able to solve this using guix-profile.
<TheSkylarverncc[>hey, is there a plan to add mesa-amber to guix? a recent update removed the i915 driver
<civodul>vagrantc: there's a rule in Makefile.am now that installs .git/config
<civodul>so perhaps that's where you get gpgSign=true from?
<vagrantc>i wonder if it ran into some bizarre issue with git workspaces?