IRC channel logs

2017-09-17.log

back to list of logs

<marusich>buenouanq, the answer to your question about whether running something as root using su is "the same" as running something as root using sudo depends on what you mean by "the same as".
<marusich>In both cases, the process you run will run as root, so it is "the same" in that sense.
<marusich>However, the environment (e.g., the PATH variable, and other environment variables) might be (and frequently will be) different, so in that sense it is not "the same".
<buenouanq>marusich: thank you - Does this mean that you can run $ sudo system reconfigure .../config.scm and expect it to work or not?
<marusich>That will work as expected.
<marusich>However, guix pull will only work if the home directory is set correctly (e.g., via "sudo -H")
<buenouanq>neat
<marusich>On some systems, like GuixSD, the system policy appears to already be configured to make it so that sudo will set the home directory like that.
<marusich>However, on some systems, like Ubuntu, that is NOT the default, which can lead to unexpected reesults.
<marusich>namely, that guix pull will update the user's (non-root) guix symlinks, and change their ownership to root, which is not good
<marusich>I found that out the hard way.
<marusich>There are probably ways we could prevent that accident from occurring though...like, maybe check to make sure that the directory in which guix pull wants to update the symlink, is actually owned by the user that we expect it is owned by.
<marusich>But in any case, on Ubuntu, at least the version I use, I have to run "sudo -H guix pull" explicitly to ensure that "guix pull" updates the symlink in root's home directory.
<buenouanq>yeah, those sort of potential inconsistencies have lead me to work under the assumption that using sudo with guix is just not a good idea
<marusich>Locales also don't work so well with sudo, unles you do something to set up the relevant environment variables.
<marusich>So, you'll get complaints from the system about locales if you run "sudo guix", even though the behavior of the program will work.
<marusich>With the exception of that "guix pull" symlink problem I mentioned earlier, these issues are (so far, based on what I've seen) benign.
<marusich>And, you can in theory (I think) configure the sudo policies to ensure that certain environment variables (such as HOME) are set up correctly; I just haven't gone that far down the rabbit hole on my own Ubuntu system.
<marusich>In any case, specifically with regard to "guix system reconfigure," running it as root by using sudo is totally fine - it's what I do. It works also if you run it from a root shell (e.g. after using su).
<marusich>AFAIK it doesn't suffer from the same "gotcha" that I described for "guix pull", since the symlinks it updates are not determined from environment variables.
<marusich>buenouanq, so i guess the answer to your question of "is it the same?" is "the process runs as root in either case, but the environment might be different."
<marusich>Nowadays many people (myself included) consider it more secure to run commands using sudo, if they must be run as root, so Guix ought to work with sudo just fine.
<happy_gnu[m]>how big should a fresh install of guix be?
<happy_gnu[m]>I installed i3wm
<happy_gnu[m]>so no gnome or xfce
<marusich>Do you mean, how big should the closure of the entire system be?
<happy_gnu[m]>how many GB it will occupy?
<happy_gnu[m]>I ask because I did a 15gb disk image for the virtual machine
<happy_gnu[m]>but it is already at 9gb's
<happy_gnu[m]>and still going :/
<marusich>the total closure size of my system is 3 GiB
<marusich>As reported by guix size $(readlink /run/current-system)
<happy_gnu[m]>marusich: oh :/
<happy_gnu[m]>there must be something wrong then
<marusich>The total closure of my profile is 6.4 GiB
<marusich>guix size $(readlink -f ~/.guix-profile)
<marusich>happy_gnu[m], what exactly is 9 gb?
<happy_gnu[m]>is probably counting swap space or something
<happy_gnu[m]>when I do a "ls" of the directory where I put guix.img
<happy_gnu[m]>it shows it has a size of 9gbs
<happy_gnu[m]>It was at 2gbs in the morning
<marusich>Why'd it get larger?
<marusich>did you run the image and then do stuff inside the system?
<happy_gnu[m]>well I am installing guixSD
<happy_gnu[m]>the way the guide said
<happy_gnu[m]>but instead of giving it 5gb i gave it 15
<happy_gnu[m]>12 for guix and 3 for swap
<happy_gnu[m]>but I think it is not actually 15gb until you use them, is more like a limit
<marusich>I'm afraid I don't understand precisely what you're doing... There's an image that was 2 GiB. What was that image? The installer image?
<happy_gnu[m]>oh
<happy_gnu[m]>I am installing guixsd on a virtual machine
<happy_gnu[m]>to do that you have to create a disk image that will hold the system
<happy_gnu[m]>my disk image is at 9GB of size
<marusich>So, how did you create that 2 GiB image?
<happy_gnu[m]> https://www.gnu.org/software/guix/manual/html_node/Installing-GuixSD-in-a-VM.html#Installing-GuixSD-in-a-VM
<happy_gnu[m]>I run the command that is there
<marusich>I see.
<marusich>So the image that was small but is now large is the one which corresponds to "guixsd.img" from step 2 of that page, yes?
<happy_gnu[m]>yes
<marusich>OK.
<happy_gnu[m]>It was at 2gb in the morning
<happy_gnu[m]>and now is at 9gb
<happy_gnu[m]>I was checking it because I have no idea how long does it take to install guixsd
<happy_gnu[m]>its been going for hours and hours
<marusich>Just out of curiosity, did you run the exact command "qemu-img create -f qcow2 guixsd.img 5G"?
<happy_gnu[m]>no I run it with 15G not 5
<marusich>I ask because I thought that if you did that, you would only have 5 GiB to work with in the disk image.
<marusich>OK, that makes sense.
<happy_gnu[m]>I gave 3gb to swap space and 12 to the disk when doing the partitions
<marusich>So, what's probably happening is that the derivations that must be built in order to produce the system are probably just taking up extra space
<happy_gnu[m]>thats why I am a little worried I will run out of space :/
<marusich>Just because, for example, my system's closure is 3G, doesn't mean that the closure of its derivation is 3 G.
<happy_gnu[m]>ohh
<happy_gnu[m]>so those will be cleaned at the end?
<happy_gnu[m]>I really want it to finish
<happy_gnu[m]>I have learned a few things :)
<happy_gnu[m]>after it finish I will set up my first home server with an old pc and guixSD
<happy_gnu[m]>I will install privoxy and I will try to package stuff for guix
<marusich>Yes, you can GC the dead paths afterwords, if you wish, to reduce the total size of the used space (although I'm not sure if that will reduce the size of the disk image -that depends on whether or not the qcow2 format will "shrink" when the used space goes down )
<marusich>I'm computing the size of the derivation which built my current system (using guix size)...it's not done yet.
<happy_gnu[m]>marusich: do you use guixsd or just guix?
<marusich>The closure of the derivation that builds the system is the closure of everything required to build the system...which is definitely going to be larger than the result (the 3 GiB system).
<marusich>I use GuixSD on one laptop, and less commonly I use Guix on Ubuntu.
<marusich>Primarily I use GuixSD.
<happy_gnu[m]>how long should I expect installation of guixSD to take?
<marusich>I would expect it to take no more than about 8 hours on my laptop. If it doesn't make progress in 24 hours, I'd be concerned.
<marusich>It ought to go pretty quickly though, if you're using substitutes.
<happy_gnu[m]>I am using
<happy_gnu[m]>but also I passed --fallback
<marusich>Yeah, that's going to slow it down.
<marusich>Of course, it also enables you to build it when substitutes are not available, but it'll be slower.
<happy_gnu[m]>x-build-gcc-5.4.0.drv-0/build/./gcc -nostdinc++ -L/tmp/guix-build-gcc-5.4.0.drv-0/build/x86_64-unknown-linux-gnu/libstdc++-
<marusich>Building the software takes muuuuuuch longer. Instead of minutes, it takes hours.
<happy_gnu[m]>that type of messages had been there for hours
<marusich>Yup. Just leave it be for a while.
<marusich>As long as it's not hanging there, doing nothing, it's probably making good progress.
<happy_gnu[m]>I read qemu documentation to gave it the best power possible. Is going really fast now
<happy_gnu[m]>I use an intel core i7 4gen
<happy_gnu[m]>but it is still slow
<marusich>You might want to make sure you have virtualization support configured in your BIOS or equivalent
<happy_gnu[m]>yes
<happy_gnu[m]>I did
<happy_gnu[m]>:)
<marusich>Then that's about all you can do. I'd just wait a few hours and check back on it.
<happy_gnu[m]>I am happy though, I will set a server
<happy_gnu[m]>I did ssh to the virtual machine
<happy_gnu[m]>I've never did ssh before
<happy_gnu[m]>that way I could easily edit files in my emacs and just send them via ssh
<happy_gnu[m]>now I know how to set up the server from my pc
<marusich>I gotta run, but I wish you luck! Have fun ^^
<happy_gnu[m]>kind of stupid doing the virtual machine when I could have done that from the beggining
<happy_gnu[m]>ohh goodbye marusich :)
<lfam>I want to pass the list of inputs using a particular build system from the host side to the build side, where the list can be used to set up an environment variable.
<lfam>I have a simple procedure for the task: http://paste.lisp.org/+7MR1
<lfam>I've put it in the build-side part of the build system (guix build-system go)
<lfam>Is this the best way?
<lfam>I think I need to run the procedure in the Go build system's (lower)
<happy_gnu[m]>lfam: \\o/
<happy_gnu[m]>so
<happy_gnu[m]>my installation is showing this now
<happy_gnu[m]>PASS: t/remake-subdir.sh
<happy_gnu[m]>PASS: t/remake-subdir2.sh
<happy_gnu[m]>a lot of those
<happy_gnu[m]>I don't know much but it looks to me like it finished building GCC
<happy_gnu[m]>right?
<happy_gnu[m]>:/
<happy_gnu[m]>I am getting nervous
<happy_gnu[m]>my image is about to run out of space
<happy_gnu[m]>it is at 12GB
<happy_gnu[m]>it is still compiling
<happy_gnu[m]>and I only have a 15GB image :/
<happy_gnu[m]>what do I do
<happy_gnu[m]>I read that to increase image I need to shut down VM
<happy_gnu[m]>:/
<happy_gnu[m]>is there a way to stop install
<happy_gnu[m]>clean space
<happy_gnu[m]>and continue install?
<Elronnd>happy_gnu[m]: ctrl-c?
<happy_gnu[m]>Elronnd: but I have to shut it down :/
<happy_gnu[m]>how do I reboot to it
<Elronnd>not sure actually
<Elronnd>I haven't looked into guix yet, just joined this channel as a reminder to look at it later
<happy_gnu[m]>Elronnd: ohh
<happy_gnu[m]>it is great though :)
<happy_gnu[m]>I run guix on parabola
<happy_gnu[m]>but I am installing GuixSD on a virtual machine
<happy_gnu[m]>I just give it not enough space I think
<Elronnd>parabola?
<Elronnd>what's the difference between guix and guixsd?
<happy_gnu[m]>Elronnd: Parabola is arch linux but only with free software
<Elronnd>ohh
<happy_gnu[m]>Guix is a package manager, you can install software with it, is very easy to use. Is secure because it has reproducible builds
<Elronnd>so there are guix repositories for arch linux?
<happy_gnu[m]>You can install software for users without the need for using sudo
<happy_gnu[m]>and is very easy to have multiple versions of packages without conflicts
<Elronnd>ooh!
<Elronnd>that's one thing I don't like about arch
<happy_gnu[m]>so in arch sometimes you upgrade a package but this breaks a dependency or something
<Elronnd>because when stuff breaks, which isn't often, you can't downgrade
<happy_gnu[m]>you can install guix on top of arch
<happy_gnu[m]>it is also really easy to go back in "generations"
<happy_gnu[m]>so if you want to remove a lot of stuff
<happy_gnu[m]>you just change a generation and bam everything is like it was before
<happy_gnu[m]>pretty awesome actually
<Elronnd>does it build from source or download binaries?
<happy_gnu[m]>But there is also GuixSD, is a distribution like arch that uses Guix as its package manager
<happy_gnu[m]>Elronnd: both, according to what you select
<happy_gnu[m]>you can either use binaries or compile
<Elronnd>how is GuixSD like arch?
<happy_gnu[m]>is a GNU/Linux distribution
<happy_gnu[m]>Guix is the package manager - like Pacman on arch
<Elronnd>so it's just a distro
<Elronnd>yes
<happy_gnu[m]>but you can install Guix in any distro
<happy_gnu[m]>and have packages that won't conflict
<happy_gnu[m]>you can have lets say Audacity installed in arch
<happy_gnu[m]>and also installed with guix
<happy_gnu[m]>both in the same Arch installation
<happy_gnu[m]>so if the arch's audacity break
<happy_gnu[m]>you can still use the Guix one
<Elronnd>ACTION downloads virtualbox to try with guix
<Elronnd>what is guix written in, btw?
<Elronnd>I saw it was extensible with scheme, is it written in scheme?
<Elronnd>guile?
<happy_gnu[m]>yes
<happy_gnu[m]>both guix and guixsd work with guile
<buenouanq>but is it written in guile?
<happy_gnu[m]>and guixSD configuration is not like arch
<Elronnd>^^
<buenouanq>I'm not sure, but I sort of think it might be.
<happy_gnu[m]>this is for example the configuration file
<happy_gnu[m]> https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System
<happy_gnu[m]>there are a few examples
<happy_gnu[m]>as you can see in one file you install your Desktop Enviroment or Window Manager of choise
<happy_gnu[m]>you set the time, locales, users, path of users
<Elronnd>is there a process for becoming a maintainer for guix packages?
<happy_gnu[m]>Elronnd: this short video
<happy_gnu[m]> https://audio-video.gnu.org/video/misc/2016-07__GNU_Guix_Demo_2.webm
<Elronnd>because there are probably a few -- at least one -- packages that I use that probably aren't in repos
<Elronnd>happy_gnu[m]: oh god
<Elronnd>I can't watch that
<Elronnd>the cursor is blinking
<happy_gnu[m]>Elronnd: why? :/
<Elronnd>are there nonfree repos for guix? I kind of need gpu drivers which are kind of nonfree
<buenouanq>no there are not
<Elronnd>hmmm
<happy_gnu[m]>Elronnd: you can start installing guix on top of arch
<Elronnd>I can probably install them manually with packages from other distros
<Elronnd>they're mostly just tarballs
<happy_gnu[m]>to see what is it about
<Elronnd>happy_gnu[m]: nah I'ma make a vm
<happy_gnu[m]>Elronnd: yeah you can do that too
<Elronnd>my internet is shit so the iso is taking forever to download. But it's coming
<happy_gnu[m]>oh great :)
<happy_gnu[m]>you are already downloading
<happy_gnu[m]>which one are you downloading
<happy_gnu[m]>the usb or the virtual machine image
<Elronnd>guixsd-usb-install-0.13.0.x86_64-linux.xz
<happy_gnu[m]>oh the usb
<happy_gnu[m]>in the downloads page
<happy_gnu[m]>if you scroll down
<happy_gnu[m]>there is also a virtual machine image
<Elronnd>is there an advantage to using that?
<happy_gnu[m]>Elronnd: to be honest I have no idea I am kinda new too :/
<Elronnd>oh, I had been going to use vbox
<happy_gnu[m]>but I used the same that you are using
<Elronnd>should I still use the vm image?
<happy_gnu[m]>is more fun doing everything from the start
<Elronnd>ACTION shrugs. Vbox is fancy. It boots regular ISOs. It'll figure it out
<happy_gnu[m]>I think the vm image is ready to be used
<happy_gnu[m]>I use qemu
<happy_gnu[m]>there are intructions on how to use qemu in the guide
<happy_gnu[m]>and there is this Elronnd https://wiki.gentoo.org/wiki/QEMU/Options
<Elronnd>those instructions aren't really interesting
<Elronnd>it literally just says use qemu normally
<Elronnd>there aren't any special settings for guixsd
<happy_gnu[m]>Elronnd: https://www.gnu.org/software/guix/manual/html_node/Running-GuixSD-in-a-VM.html
<happy_gnu[m]>no I didn't say there were special settings
<happy_gnu[m]>just there were instructions
<Elronnd>yes I saw that linnk
<Elronnd>oh, also I'm pretty sure I'll need nonfree drivers for wifi
<Elronnd>how will I install those without already having wifi to download them with?
<happy_gnu[m]>Elronnd: thats pretty bad :(
<happy_gnu[m]>I hate that they even hold the code of wifi drivers
<happy_gnu[m]>well Elronnd you can always install guix on arch and then create a package for the non free drivers
<happy_gnu[m]>and use it when installing :)
<happy_gnu[m]>anyway I need to go now :)
<happy_gnu[m]>good luck Elronnd I hope you don't have problems with the drivers :/
<happy_gnu[m]>give Guix a chance, it is pretty good :D
<Elronnd>waiiiiit maybe I don't
<Elronnd>one moment I will check
<Elronnd> https://www.freebsd.org/cgi/man.cgi?query=iwm&sektion=4 this is my wireless card. I have no idea if it's nonfree or not
<Elronnd>see ya hap
<Elronnd>see ya happy_gnu[m]
<Elronnd>hmmm. I'm pretty sure wifi worked on opensuse, which is fanatic about opensource
<Elronnd>"Intel Wireless WiFi Link drivers for Linux, or iwlwifi, which provides official, *Open* support for wireless Intel adapters."
<niebie>I use a super lowend think pad which had working wifi with fedora, but not working with GuixSD.
<niebie>It has to do with using the linux libre kernel
<niebie>which removes all of the firmware blobs
<Elronnd>D:
<niebie>the driver can be free software, but if there are binary blobs for the firmware it is not supported
<Elronnd>I like blobs though
<Elronnd>Dammit vbox
<Elronnd>"Could not get the storage format of the medium '/home/elronnd/Downloads/guixsd-usb-install-0.13.0.x86_64-linux' (VERR_NOT_SUPPORTED)."
<niebie>that happens for me too actually
<niebie>haven't installed it in a vm before
<niebie>i just installed it on a whim
<niebie>months ago at this point
<Elronnd>yeah I found the solution
<Elronnd> https://gitorious.org/ecelis-guix/hackathon?p=ecelis-guix:hackathon.git;a=blob;f=INSTALL.VirtualBox;h=f37d937177b72673539ad14fb5f1a9513c7aa7a1;hb=HEAD
<Elronnd>qemu-img convert -O vmdk gnu-usb-install-0.7.system gnu-install-0.7.system.vmdk
<niebie>glad you found it
<Elronnd>ok, it still doesn't like me
<Elronnd>lemme try another format
<Elronnd>niebie: I figured it out!
<Elronnd>You have to convert it to vdi format with qemu-img, and then do add *hard disc* instead of add optical media
<Elronnd>umm what?
<Elronnd>"stty: 'standard input': Input/Output error"
<niebie>I just got to that same point on my end too
<niebie>The prompt is still there though
<niebie>so you should be in a root shell
<Elronnd>I have a root shell but nothing happens when I type
<Elronnd>I'm downloading the vm image now, maybe that'll work better
<niebie>thats interesting - i have the same error you wrote but pressing enter gives me the prompt, and programs i would expect to be there are there
<Elronnd>when I move the mouse around, the cursor (not the mouse cursor, the block cursor) moves around the screen
<Elronnd>when I click and drag, text is selected
<Elronnd>that's about the extent of my interaction with it
<Elronnd> https://files.catbox.moe/apjrkw.png
<niebie>what about alt+f2?
<Elronnd>ah it works now
<Elronnd>(I rebooted the vm)
<niebie>out of curiosity, what is your editor of choice? since this is based on a scheme, i'm pretty sure most of us lean emacs
<Elronnd>vim, actually
<niebie>there is a very thin emacs implementation called zile that is deployed with the image
<niebie>i have nothing against vim, just curious.
<niebie>Have you tried out the vim layers in emacs before?
<Elronnd>nope
<Elronnd>never felt the need
<Elronnd>networking isn't working, wat do?
<Elronnd>I already ifconfig enp0s3 up and lo up
<Elronnd>(I also dhclient)
<Elronnd>it's a vm so it should automagically work, no?
<niebie>i was just doing that when i needed to reattach my vdi to it
<niebie>and ya it should in my experience just work (tm)
<niebie>i assume you did dhclient enp0s3?
<niebie>because pinging gnu.org works for me
<Elronnd>when I go to settings->network, I see "Adapter type: Intel PRO/1000 MT Desktop (numberEM)"
<Elronnd>ah it works now :3
<Elronnd>ACTION wonders what partitions to make
<niebie>are you following https://www.gnu.org/software/guix/manual/html_node/Proceeding-with-the-Installation.html#Proceeding-with-the-Installation
<Elronnd>...no
<Elronnd>I'm following https://www.gnu.org/software/guix/manual/html_node/Preparing-for-Installation.html#Preparing-for-Installation
<Elronnd>oh hmmm
<Elronnd>that's what comes next, isn't it
<Elronnd>but anyway, don't I need a boot partition?
<niebie>you are right - asking because you will want to think about what the os definition looks like
<niebie>let me grab my guixsd machine and look at my partitions
<Elronnd>but
<Elronnd>what fs type do I make the boot part?
<niebie>my setup (probably not the best, but working) just threw one ext4 partition at it
<niebie>didn't even allocate swap
<Elronnd>niebie: do reproducible builds mean that I can build some packages from source and others I can download binaries
<Elronnd>niebie: is it "linux root" or "linux filesystem"?
<niebie>in theory for the same hardware, local builds and remote builds will be binary identical
<niebie>Elronnd: do you mean in fdisk?
<Elronnd>yes
<Elronnd>(well, I'm using cfdisk, but same thing)
<Elronnd>will it have an effect if I change build flags so stuff I build from source has -march=native -mtune=native? That is, if I build a library with those flags, will packages using those libraries that I download binaries of work?
<niebie>i think its root
<niebie>what i do for packages not in the guix archives is setup local package definitions and build them locally
<niebie>i haven't gotten tar ball binaries working due to the gnu c lib's linker
<Elronnd>use lld thou
<niebie>where would you plan on installing the binaries to get guix's ld to find them?
<niebie>because the gnu store is a read only filesystem
<niebie>only the OS daemons can modify it
<niebie>you probably just have to play with it to get the feel for it - 'private' packages that are built locally is the 'correct' way to install software
<niebie>basically you create package definitions for your particular software and throw them in a particular location governed by an environment variable, then it can download the source from a git repository and go through build steps.
<niebie>I'm just a casual user really, I can't hack the internals yet so I am not going to be a definitive source of information for you
<Elronnd>ok
<Elronnd>AAAA
<Elronnd>WHY IS GNOME HERE
<Elronnd>I'm getting complaints that mapped-devices is unbound
<Elronnd>I thought I only need it for LUKS
<Elronnd>what do I set it to?
<niebie>you didn't customize the os image at all
<niebie>and it has mapped-devices set
<niebie>also gnome on by default
<niebie>what wm do you use
<Elronnd>fvwm
<Elronnd>but that's not important I'll get my .xinitrc sorted out later
<Elronnd>I commented out the (list (mapped-device block because I don't use LUKs
<Elronnd>Apparently I need it so what do I set type to?
<Elronnd>and how do I find the uuid?
<niebie>my working config doesn't have it set
<niebie>straight from booloader to file-systems
<Elronnd>I get this error: "guix system: error: failed to load '/mnt/etc/config.scm'"
<niebie>you probably dropped a paren - i would ask you to paste it but that might be hard at this point for you
<Elronnd>"/mnt/etc/config.scm:16:14: /mnt/etc/config.scm:16:14: In procedure module-lookup: Unbound variable: mapped-devices"
<Elronnd>parens seem to line up
<niebie>oh
<Elronnd>wow, vi is crippled compared to vim
<Elronnd>no visual block, no macros
<Elronnd>bleh
<niebie>you didn't delete the dependencies
<niebie>in the file-systems definition
<niebie>it has (dependencies mapped-devices)
<Elronnd>ohhh no
<Elronnd>uhhhh
<Elronnd>(use-package-modules certs gnome)
<Elronnd>can I use just the certs but not the gnome?
<Elronnd>(users (cons (user-account
<Elronnd>WTH why does *that* want gvfs
<Elronnd>waiiit
<Elronnd>methinks I want minimal-desktop instead of desktop
<niebie>thats pretty much what i use personally
<Elronnd>oh *here* we go
<Elronnd>bare-bones.scm looks much more reasonable
<niebie>you should be able to add to the lightweight-desktop.scm the ability to use fvwm, since it is packaged with guix already btw
<Elronnd>"guix system: error: primary group 'elronnd' of user 'elronnd' is undeclared"
<Elronnd>how do I declare it?
<buenouanq>Elronnd: here's a step further even https://rectilinear.xyz/p/d61650faa2+
<buenouanq>marrow.scm
<Elronnd>wow
<Elronnd>that's...a bit marrow
<buenouanq>you could even get rid of that user if you wanted
<buenouanq>just have root
<Elronnd>yeah but making a user myself is so annoying
<Elronnd>I can never remember all the stuffs I have to create
<Elronnd>I just made the primary group "users", I'll change it later
<buenouanq>also is totally against THE GUIX WAY
<Elronnd>WHAT IS THE GUIX WAY
<Elronnd>TEACH ME o GREAT MASTER
<buenouanq>if you have to ask you may never know~
<Elronnd>I was telling
<Elronnd>not asking
<buenouanq>Zen and the art of package management
<Elronnd>heh
<Elronnd>arghh
<Elronnd>grub doesn't like me
<Elronnd>it's complaining about blocklists
<cbaines>Looking up the hash of something (using query-path-info) put in to the store (using local-file) gives a different answer to calling guix hash on it, any ideas?
<janneke>cbaines: obviously the data fed to the hash function is different, or the hash function used is different
<efraim>sneek: later tell ng0 I know enlightenment has `freqset` that needs setuid permissions, were there other ones from enlightenment?
<sneek>Got it.
<efraim>sneek: botsnack
<sneek>:)
<ng0>if a screensaver needs suid, should we recommend to add it to the screensaver-service thing we have (no idea if this is pam or suid enabled, didn't read it in a while!) or make a service which extends on this?
<sneek>Welcome back ng0, you have 1 message.
<sneek>ng0, efraim says: I know enlightenment has `freqset` that needs setuid permissions, were there other ones from enlightenment?
<ng0>efraim: uh no idea
<ng0>I didn't look into enlightenment in a while
<ng0>I've been working on Mate as priority package
<ng0>for context, mate-screensaver needs suid for lock screen
<ng0>if you don't provide it you can only "hard reset" to get out ;)
<efraim>ng0: ok
<ng0>are you writing an "enlightenment" service?
<efraim>i have this screenshot from a year ago https://flashner.co.il/~efraim/guix_enlightenment_error.png when I tried running enlightenment on guixsd, I couldn't remember if there were other programs though
<efraim>I was thinking about it
<efraim>it looked simple enough
<brendyn>is there a way to subtract services from %desktop-services in my system configuration?
<ng0>well I have still a couple of minutes, I can boot into E.
<efraim>brendyn: like with %modify-phases, you can have (modify-services %desktop services (remove foo)...)
<brendyn>Thanks
<efraim>I don't have a full example, I haven't done one yet
<ng0>one moment
<efraim>ng0: according to nixpkgs https://github.com/NixOS/nixpkgs/blob/3c4ffdcbbc0e75a761c72f0ef669edc5599a015e/pkgs/desktops/enlightenment/enlightenment.nix it looks like just freqset
<brendyn>another think i'd like to do is add all the packages from my main user into the system-wide packages
<ng0>brendyn: dig through https://gitweb.krosos.org/systems/ and you'll find a full example
<ng0>more specifically http://gitweb.krosos.org/systems/tree/guixsd/workstations
<ng0>efraim: ok
<ng0>imo we also need to adjust the welcome dialogue
<efraim>debian is still on 0.17.6 :/ so I haven't actually seen a modern boot-up of enlightenment in forever
<brendyn>I never understood englightenment. seems so over rated
<ng0>language, not configurable ("System default") which is okay. Keyboard shows nothing. Profile is okay (works). Maybe write an Networkmanager and/or Wicd dialogue part and contribute it upstream, and/or skip the "Install/enable Connman" step. Maybe disable the Update checking (will probably only work for user-installed addons?) step.
<ng0>I just went through the initial first-time dialogue
<efraim>i forgot about all those parts
<ng0>It's easier to remember this with a bug, right? I'll send an email
<efraim>sure, that'll help
<efraim>its also how I remember the python-waf and guix-environment bug that i've been thinking about for months
<ng0>and the first error message greeting me is the cpufreq one
<ng0>What didn't work for my new Mate series in work so far is the icon theme package, the caja-extensions and some other thing I forgot about. And the screensaver is half-way working
<ng0>Calculator works
<ng0>and backgrounds
<ng0>a simple mate meta-package without gnome in the profile lacks many icons... (for example emacs or icecat)
<ng0>where are thos included, adwaita?
<ng0>oh and user-guide with yelp is another puzzle
<ng0>screensaver on its own works
***jonsger1 is now known as jonsger
<ng0>just the lock screen feature doesn't, but they messaged this in the build process
<ng0>and I don't understand "mate-netbook" to make a statement of wether it works or it doesn't works
<efraim>i'd skip mate-netbook for now
<efraim>probably needs adawaita for icons
<efraim>here's debian's "control" file for their mate meta-package https://sources.debian.net/src/mate-desktop-environment/1.18.0%2B1/debian/control/
<ng0>thanks
<ng0>well I packages mate-netbook successfully
<ng0>just the working and integration part, I need to read their documentation ;)
<ng0>"change window behavior" so far I have no option for that
<ng0>I don't have mate-polkit packaged so far and 3 or 5 other applications. So maybe things just start working after thta
<ng0>for the extensions I need to look at the code
<ng0> https://gitweb.krosos.org/ng0_guix/guix/commit/?h=system/mate-additions&id=6a35606ed62de1d2c47ff9e79a1d9f675909ace7 <- is this commit message okay?
<brendyn>still cant figure this out. modify-services doesn't seem to offer a way to delete items
<efraim>ng0: looks good to me
<ng0>thx
<ng0>There's a dropbox extension for (caja?) mate. Is my decision right to not package it for the main repository? I'm not sure how Dropbox is viewed in terms of freedom and licensing, I have never used dropbox.
<efraim>i'd skip the dropbox one
<efraim>debian puts caja-dropbox in non-free
<ng0>ok
<slim404>hi
<slim404>when I try to configure slim from french keyboard I get an error : service « xorg-server » provided more than once
<ng0>yuk. I can't clean guix (and can't enter an environment or run any of my automation scripts to do this)… what was the trick you used efraim, manually remove the .go files?
<slim404>I guess it's provided by #desktop-services, but it used to work
<efraim>ng0: rm gnu/s*/*go , for the most recent services changes
<slim404>anybody has configured french keyboard for slim display manager?
<ng0>afaik it will not work due to the bug which needs to be fixed. of course if you can document what you do to fix it, it will help
<ng0>what did work before? having a french layout in SLIM?
<mbuf>is it possible to create a meta-group of packages in Guix? something like a Fedora spin
<ng0>yes, that's waht we do with Gnome and Mate for example
<mbuf>ng0, I see
<slim404>ng0: thanks. yes, the stance configuring SLIM in my config.scm did work
<ng0>would you mind sharing it? I was never able to use anything other than en_US
<ng0>do we have a language selector for SLIM I didn't notice?
<ng0>back when I reported the bug there was nothing to resolve this with
<slim404>this stance : (slim-service #:startx (xorg-start-command #:configuration-file (xorg-configuration-file #:extra-config '("Option \\"XkbLayout\\" \\"fr\\"\\n"))))
<ng0>oh
<ng0>if it's just that and you can make it work again and share the update, the resolution for SLIM would be so easy
<slim404>I'm new to guix, guile and scheme in general. I'll do my best
<ng0>search for "SLIM" on the "guix" debbugs.gnu.org to report what you have then, from what I remember it might help
<slim404>here's my full service stance (services (cons* (console-keymap-service "fr")
<slim404>ng0: ok
<ng0>I think it's not normal that Icecat without any prior configuration on the system defaults to Google as a search engine...
<ng0>I just have this
<ng0>About my gnunet module patches, the ones which add the full GNUtls we need. Should I rebase them on core-updates, or just leave them waiting?
<thomassgn>anyone know how to access or enter a container created with 'guix system container'?
<cbaines>thomassgn, the guix container exec command can be used to run a command in a container
<thomassgn>cbaines: Ah, thanks!
<happy_gnu[m]>hello \\o/
<happy_gnu[m]>hey \\o/
<happy_gnu[m]>I need some help
<happy_gnu[m]>I need I screw up my installation
<happy_gnu[m]>I rebooted my virtual machine
<happy_gnu[m]>well no sorry I tried booting the img that was created
<happy_gnu[m]>but it did not boot
<happy_gnu[m]>so I am back with the image that is used to install
<cbaines>happy_gnu[m], when it didn't boot, was there an error message?
<happy_gnu[m]>cbaines: no it stayed there
<happy_gnu[m]>so I booted the image to install
<happy_gnu[m]>and mounted the one that is supposed to be my virtual hard drive
<happy_gnu[m]>it has the old /etc/config.scm
<cbaines>do you have previous generations of the system that you could try booting?
<happy_gnu[m]>but I can't find everything that should had been installed
<happy_gnu[m]>cbaines: what is that? guix generations? oh no I was installing guixSD on a virtual machine for the first time
<happy_gnu[m]>:/
<cbaines>ok, so has the system ever booted successfully?
<happy_gnu[m]>no, it was installing since yesterday
<happy_gnu[m]>It could not find a few packages so it asked me to pass --fallback
<happy_gnu[m]>I did
<happy_gnu[m]>It compiled a lot and I let it
<happy_gnu[m]>today I came back to it
<happy_gnu[m]>and I was on a root prompt
<happy_gnu[m]>so I thought it was finished
<cbaines>out of interest, what virtual machine software/hosting are you using?
<happy_gnu[m]>I turned of the VM and booted the one that was created for the installation
<happy_gnu[m]>but it is not booting it just stays there
<happy_gnu[m]>qemu
<happy_gnu[m]>I am using and doing everything following the guide
<cbaines>Do you know about the QEMU image that is available?
<cbaines>It's available from here, and would mean you'd just have to download the image https://www.gnu.org/software/guix/download/
<happy_gnu[m]>cbaines: I do but
<happy_gnu[m]>what about the image I was doing
<happy_gnu[m]>so I booted the usb image
<happy_gnu[m]>and I was able to mount the partition I did during the installation for root
<happy_gnu[m]>but when I do ls
<happy_gnu[m]>it only has /etc/config.scm
<happy_gnu[m]>an empty /tmp
<happy_gnu[m]>and an empty /lost+found/
<happy_gnu[m]>what happened to everything it did :/
<cbaines>Without more information, it's hard to know
<cbaines>I'd suggest continuing with the installation process where it makes sense to do so
<happy_gnu[m]>cbaines: well it makes sense to me because I want to learn to install guix
<happy_gnu[m]>to be able to change my main computer to guix
<cbaines>I meant continue from whatever step is relevant
<happy_gnu[m]>so you think I should start over
<cbaines>It sounds like you need to start from the "Proceeding with the Installation" section, so running: herd start cow-store /mnt
<cbaines>You've still got the configuration file, so you don't have to do anything with that
<cbaines>The next step is to run guix system init
<happy_gnu[m]>cbaines: ok... I did herd start cow-store /mnt
<happy_gnu[m]>but this means it will start over right :(
<ng0>efraim: not adwaita, for icecat (mate or icecat?) tells me that I need https://icon-theme.freedesktop.org/releases/
<happy_gnu[m]>I've been at this for days now :/
<happy_gnu[m]>compiling all the time
<cbaines>happy_gnu[m], hopefully there might be more binary substitutes available now
<cbaines>my other suggestion would be to use a more minimal configuration for the system, if that is possible
<happy_gnu[m]>cbaines: I will probably cancel
<cbaines>you can always reconfigure after the installation to add more packages/service
<happy_gnu[m]>this is my third day doing this
<cbaines>happy_gnu[m], there is also a --dry-run option to guix system, and I think that will tell you what it would need to compile locally, if anything
<happy_gnu[m]>ohh
<happy_gnu[m]>well i did guix system init /mnt/etc/config.scm /mnt
<happy_gnu[m]>It is going really fast right now
<happy_gnu[m]>I am waiting a little for it to see what will it install
<happy_gnu[m]>if it stars compiling GCC again
<happy_gnu[m]>I am gonna cry :(
<pksadiq>is guix okayish for day to day use? (I develop gtk+ apps, and that's all is what I need)
<pksadiq>guixSD I mean
<pksadiq>and I would like to know GNOME 3.26 status
<cbaines>pksadiq, I use it day to day :)
<happy_gnu[m]>well it seems like it is installing new stuff
<happy_gnu[m]>so maybe I have hope
<pksadiq>cbaines: No crashes or data loses ever? Uptime of a month with no severe issues?
<happy_gnu[m]>pksadiq: https://www.gnu.org/software/guix/packages/
<pksadiq>happy_gnu[m]: I saw there. Everything GNOME is at 3.24. I wish to know if there is any on going effort to porting it to 3.26
<cbaines>pksadiq, no data losses, and I have two servers that haven't had uptime issues
<cbaines>I've been having some problems lately with the MySQL service, but that is a known issue (now at least)
<pksadiq>cbaines: wow. good to know. I'm a GNOME contributer (mostly QA), and I was wishing to have a switch. I prefer to use GNU for day to day use. :)
<pksadiq>I don't care about MySql (or MariadB). I need browsing (firefox mostly, and chromium occassionaly) evolution package (and related services), tracker, gnome-online-minors, and the gnome-shell to be working fine
<pksadiq>I don't care if wayland is supported or not.
<cbaines>You should look in to each of those further, e.g. Guix provides icecat currently, and doesn't have a package for firefox
<cbaines>there is a patch for chromium, but it hasn't been merged yet
<cbaines>I'm not sure about tracker and gnome-online-mirrors
<happy_gnu[m]>pksadiq: GuixSD is a distribution that follows the Free Software Foundation guidelines for Distributions
<happy_gnu[m]>so there is no chrome
<pksadiq>icecat is okay for me (I don't use any non-free extensions, all I use is ublock origin, and keysnail)
<cbaines>gnome-shell works fine, apart from that annoying issue where you drag a window in the overview and it crashes (but you can fix that if you create some file somewhere)
<ng0>chromium could be merged… efraim reported it builds, last core-updates (the ones active before chromium) have been merged with master so the core-updates mentioned in there is now ok
<pksadiq>I got disconnected. did I miss anything?
<ng0>no idea, but the online log could know
<ng0> https://gnunet.org/bot/log/guix
<happy_gnu[m]>I thought chromium still had blobs
<happy_gnu[m]>and the fact that it recommends non free addons
<ng0>it is chromium with patches.
<happy_gnu[m]>ah ok
<happy_gnu[m]>like icecat
<happy_gnu[m]>probably it would be good to change the name of it
<happy_gnu[m]>goldium
<happy_gnu[m]>hahahaha
<pksadiq>one more question. Is there an equivalent of 'apt-get build-dep' in guix?
<ng0>happy_gnu[m]: I think one can only loose with names, or satisfy one side. I named something I work on 'libremoon' :D
<ng0> but I think I need to drop the moon
<ng0>still has too much of the old name
<happy_gnu[m]>ng0: yeah I understand what you mean
<happy_gnu[m]>I have this error
<happy_gnu[m]>grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged.
<happy_gnu[m]>grub-install: error: will not proceed with blocklists.
<happy_gnu[m]>grub-install: warning: File system `ext2' doesn't support embedding.
<happy_gnu[m]>guix system: error: failed to install GRUB on device '/dev/sda1'
<happy_gnu[m]>ok so apparently the problem is that grub is being installed to /dev/sda1
<happy_gnu[m]>instead of /dev/sda
<happy_gnu[m]>how do I install only grub
<happy_gnu[m]>and how do I tell it to be installed on /dev/sda
<ng0>can you upload the config somewhere or show us the part for grub?
<happy_gnu[m]>well
<happy_gnu[m]>i used this
<happy_gnu[m]>ahh ng0 I am stupid
<efraim>pksadiq: GNOME updates are normally done by someone who is actually running gnome and can reconfigure their system using updated versions of all the packages and reports back that everything is working well
<pksadiq>Is there an equivalent of dnsutils (I need dig, and nslookup)?
<happy_gnu[m]>so I just change the file and run it again right?
<happy_gnu[m]>I did (bootloader (grub-configuration (device "/dev/sda1")))
<ng0>you need /dev/sda
<ng0>no part number
<efraim>within the past 24 hours we got the meson-build-system merged in, so now its up to someone to test out the newer version
<happy_gnu[m]>ok
<happy_gnu[m]>I deleted it
<happy_gnu[m]>should I run guix system init /mnt/etc/config.scm /mnt
<happy_gnu[m]>again?
<pksadiq>efraim: hm.. Planning to insall guixSD, checking if I have enough packages. Shall be using GNOME shell.
<ng0>GNOME is still missing some modules/packages here. it's not a full GNOME but it's more than basic. We don't have Evolution for example. I've come up with a basic construction-site state pa kcage for it, but haven't debugged the build
<ng0>you could directly search in the git repository for the software you need?
<happy_gnu[m]>\\o/
<happy_gnu[m]>Installation finished. No error reported.
<happy_gnu[m]>Installation finished. No error reported.
<happy_gnu[m]>I am so happy
<ng0>to be precise: haven't come to a state where I have a build to debug ;)
<ng0>or at least haven't looked into it for a while
<happy_gnu[m]>ohh boot is cool
<happy_gnu[m]>I am loggin in now \\o/
<happy_gnu[m]>ng0: finally I can start learning to package stuff
<pksadiq>Is there an equivalent to 'apt-get build-dep' command in guix (a command that will pull in all the build dependecies of some package)
<happy_gnu[m]>As you said searx is no simple task
<happy_gnu[m]>I will try to look for other packages more begginer friendly
<ng0>well it's easy. it's just that I haven't been bothered enough to fix whatever the bug was
<ng0>something with python 2nd level options
<pksadiq>or is it like a package also includes it developement headers?
<ng0>can't really use a webbrowser here right now to paste the bug
<happy_gnu[m]>it seems to be stuck at
<happy_gnu[m]>loggin in
<happy_gnu[m]>I will give it more time though
<ng0>actually, happy_gnu[m] look at january 2017 of the guix-devel list, thread "packaging the meta-searchenging searx fails at python-requests[socks]". I'm waiting for system updates to finish, then I can switch the branch and write an email with the patch in it.
<happy_gnu[m]>ng0: oh ok
<ng0>should be https://gitweb.krosos.org/ng0_guix/guix/log/?h=package/searx2 and needs to be rebased. the package can be created through pypi importer with some manual edits afterwards
<happy_gnu[m]>i3wm did asked me for the initial configuration
<happy_gnu[m]>but after that is just stuck at Logging in..
<happy_gnu[m]>ng0: oh the patch is in scheme
<happy_gnu[m]>somehow I expected a python patch
<ng0>the whole packages are in guile
<ng0>GLSA 201709-02 says we should update binutils to 2.28.1
<efraim>looks like its not public yet on their site
<ng0>the GLSA or what?
<efraim>I also don't remember the release announcement having anything about it being a security update
<efraim>the glsa
<efraim> https://security.gentoo.org/glsa/201709-02
<ng0>I get it via mail, just got in
<ng0>well. okay then. I'm supposed to work on other things anyway
<happy_gnu[m]>this is my config http://paste.lisp.org/display/356114
<happy_gnu[m]>Any idea why it is stuck at "Logging in..."
<ng0>you must be missing something for i3wm
<ng0>(which is why we probably should have a service or meta-package even for small DMs)
<ng0>let me look at my configs if I had one with i3wm
<happy_gnu[m]>it did asked me at the start for the configuration
<happy_gnu[m]>if I wanted alt or super key as $mod
<ng0>as far as I see it you have everything
<efraim>201709-02 just showed up
<happy_gnu[m]>ohh it works now
<happy_gnu[m]>I just rebooted
<ng0>linux-4.14 will drop the in-tree firmware blobs in 'firmware/' (drop the entire directory).
<ng0>not all documentation (yelp help) in Mate is giving errors :) I've got mate-calc covered
<ng0>and the rest now works aswell :)
<ng0>so it was juts acting strange in qemu before
<happy_gnu[m]>OK everything is great now
<happy_gnu[m]>I just need to change keyboard layout :/
<happy_gnu[m]>how can I do that
<ng0>guix package -i setxkbmap ; setxkbmap THING
<ng0>or whatever your WM/DE provides
<ng0>that's for X11, not tty
<happy_gnu[m]>oh thats why setxkbmap was not working
<happy_gnu[m]>should I install it with sudo?
<happy_gnu[m]>or just my normal user?
<Elronnd>when I run guix system init /mnt/etc/config.scm /mnt, stuff seems to work until grub is run
<Elronnd>first, it says installing for i386-pc, which I'm not sure why ybecause I'm on 64-bit
<Elronnd>but more importantly it complains about blocklists and refuses to continue
<ng0>happy_gnu[m]: just in your user profile is enough
<happy_gnu[m]>ng0: thanks :)
<Gamayun>Hm, my root user's guix profile seems to be b0rken... Its bin folder only contains wget.
<Gamayun>I can get by with 'sudo -E' for now, but i wonder what's up with it...
<efraim>ERROR: replacement length differs from the original length "h9nqlf0c82c1sds4yzs60k7pm4f37si2-binutils-2.28" "wl5dg3dnqvk2v2ahh5iadnv1s34rsbb6-binutils-2.28.1"
<sadiq[m]>When installing guixSD why it is compiling something instead of downloading binary from internet?
<cbaines>sadiq[m], probably because it couldn't find a binary to download
<oriansj>sadiq[m]: because you didn't authorize binary substitutes guix archive --authorize < "$(find /gnu/ -name 'hydra.gnu.org.pub' -print 2> /dev/null)"
<cbaines>oriansj, I think binary substitutes from hydra are trusted by default in the installation image
<sadiq[m]>Hm... Let me start over
<sadiq[m]>It is a system with an atom processor. Generating too much heat and wasting too much time
<cbaines>sadiq[m], do you know what its building?
<sadiq[m]>I didn't see the beginning. It has paths like /devices, /base /obj, /psi, etc. Is it the kernel?
<sadiq[m]>And is built with gcc
<cbaines>Sometimes if you spot the /tmp/... path, that can have the name of the package in it
<cbaines>sadiq[m], one thing you could try, is stopping it building, and add substitutes from berlin.guixsd.org https://lists.gnu.org/archive/html/guix-devel/2017-08/msg00128.html
<cbaines>that is another build farm, and using two might help
<sadiq[m]>Hm.. Shall try that. I did a Ctrl+c. Is it okay to continue the last command. Will it corrupt my installation?
<cbaines>sadiq[m], the installation is pretty transactional, stopping and restarting should be ok
<sadiq[m]>Hm.. It is building ghostscript. I wish there is some web browser (or emacs) by default in installation image
<efraim>there's zile
<efraim>and you can always add whatever you want with `guix package -i foo'
<ng0>you could run guix package --install lynx or 'links'
<happy_gnu[m]>How do you turn off with bash :/
<happy_gnu[m]>I do poweroff and it does not work
<happy_gnu[m]>reboot does though
<ng0>halt
<happy_gnu[m]>oh great
<ng0>or as I found out recently: start kodi and select power off ;)
<happy_gnu[m]>But I don't have kodi :/
<efraim>shutdown should also work
<Elronnd>why is guixsd still on gcc 5.4?
<Elronnd>and linux 4.9?
<Elronnd>oh nvm it's linux 4.11
<happy_gnu[m]>i am having trouble to configure SSH
<happy_gnu[m]>does anyone has a config file for ssh
<happy_gnu[m]>I am using this as a guide
<happy_gnu[m]> https://www.gnu.org/software/guix/manual/html_node/Using-the-Configuration-System.html#Using-the-Configuration-System
<happy_gnu[m]>The first one
<happy_gnu[m]>but
<happy_gnu[m]>I have errors
<happy_gnu[m]>guix system: error: service 'networking' provided more than once
<cbaines>happy_gnu[m], can you post your configuration to http://paste.lisp.org ?
<happy_gnu[m]>of course
<happy_gnu[m]> http://paste.lisp.org/display/356143
<happy_gnu[m]>there it is cbaines
<happy_gnu[m]>it is on a virtual machine
<happy_gnu[m]>GuixSD is the virtual machine and parabola is the host
<happy_gnu[m]>I want to ssh from parabola to guixSD
<cbaines>happy_gnu[m], the dhcp-client-service provides networking
<Elronnd>what vm software are you using?
<Elronnd>vbox? Qemu?
<happy_gnu[m]>Qemu
<cbaines>if you are using it as a desktop machine, you're using network-manager by default, so remove dhcp-client-service
<Elronnd>ah
<Elronnd>I know vbox has port forwarding, but I haven't really used qemu
<happy_gnu[m]>cbaines: oh ok
<happy_gnu[m]>With that it should work
<happy_gnu[m]>Or is there something else I should do
<happy_gnu[m]>To have SSH set up
<cbaines>happy_gnu[m], the ssh configuration looks fine
<happy_gnu[m]>OK let me reconfigure
<cbaines>and fixing that networking issue should get you one step closer to reconfiguring
<janneke>why doesn't this build current-guix from git?: guix build guix@0.13.0-6.a9468b4+
<Elronnd>what about guix@master?
<oriansj>janneke: did you know one of the major problems of using hashes for minor version numbers is that statistically you have a 50% of mistaking a new build for an old one and a 1 in 2^128 chance of having a hash value that causes the build it ignore all new releases until a new major release number
<civodul>janneke: because current-guix is computed on demand (it's a procedure)
<oriansj>hence version 1.2.0-$(date)-$(hash) ends up saving a bunch of trouble
<janneke>civodul: ah...
<janneke>civodul: we were thinking on #bootstrappable if we couldn't speed-up guix pull by simply installing a freshly built (nightly?) guix package
<janneke>produce a package description with right version and hash for guix at the user's side and download that first
<janneke>civodul: my troubles with cuirrass were probably caused by juggling different guix git repos
<efraim>do we have a non-GuixSD example config for running a cuirass service?
<joshuaBPMan>afternoon everybody!
<ng0>\\o/ only 2 more applications and furthermore debug 2 packages I already finished, and I have all of MATE.
<cbaines>joshuaBPMan, its the evening for me :)
<cbaines>happy afternoon :)
<joshuaBPMan>cbaines: hahaha.
<happy_gnu[m]>ok so reconfigure was successful
<cbaines>happy_gnu[m], great :)
<happy_gnu[m]>should I restart
<cbaines>happy_gnu[m], if you want to fully switch to the new system generation, then yes, restarting is the way to do that
<happy_gnu[m]>or just herd start ssh-daemon
<happy_gnu[m]>ok
<cbaines>however, herd start ssh-daemon is probably enough to get the ssh service working, as you just added it
<happy_gnu[m]>I am booting VM
<happy_gnu[m]>like this
<happy_gnu[m]>qemu-system-x86_64 -m 4096 -cpu host -net user,hostfwd=tcp::2222-:22 -net nic,model=virtio -boot menu=on guixsd.img -enable-kvm
<happy_gnu[m]>:/ is not working
<happy_gnu[m]>I did
<cbaines>I think you may need to tweak the ports
<happy_gnu[m]>herd start ssh-daemon
<cbaines>if I remember correctly, you had ssh configured to listen on port 2222
<cbaines>but I think your qemu command forwards port 2222 on the host to 22 on the guest, whereas ssh is listening on 2222 on the guest
<happy_gnu[m]>]$ ssh root@localhost -p 2222
<happy_gnu[m]>ssh_exchange_identification: Connection closed by remote host
<happy_gnu[m]>ahh!!!
<happy_gnu[m]>good point!!!
<happy_gnu[m]>it works cbaines :D
<happy_gnu[m]>I was very stupid trying to connect to port 22
<happy_gnu[m]>my only problem now is that it does not accept my password :/
<cbaines>awesome :)
<cbaines>it could be a keyboard layout issue?
<happy_gnu[m]>ok it workid with user "happy"
<happy_gnu[m]>but not with root
<happy_gnu[m]>maybe is a security protection ?
<happy_gnu[m]>does not matter I logged with "happy" and then changed to root
<happy_gnu[m]>finally
<happy_gnu[m]>now I just need to learn to change keyboard layout
<happy_gnu[m]>and I will be able to use X
<joshuaBPMan>happy_gnu[m]: I have the same issue. setxkbmap dvorak
<joshuaBPMan>I run it everytime after I log in.... :()
<ng0>I think it's 5 more packages missing, but I think I can do them until next weekend. Should be finished with Mate until end of the month unless I encounter some serious issues, and then just solve the search paths for the caja extensions and plugins
<happy_gnu[m]>is easy with loadkeys but setxkbmap did not work
<ng0>engrampa works, eye of mate works,..
<ng0>setxkbmap de-latin1 sets the layout to 'de-latin1'
<joshuaBPMan>happy_gnu[m]: did you install setxkbmap ?
<happy_gnu[m]>joshuaBPMan: how do you run that
<happy_gnu[m]>in xterm on i3 it did not work
<happy_gnu[m]>joshuaBPMan: I am gonna try this https://rectilinear.xyz/p/175a8fe83e
<ng0>no one can really help with just "it did not work" :)
<joshuaBPMan>happy_gnu[m]: you need to install setxkbmap with guix package -i setxkbmap
<happy_gnu[m]>ng0: ok let me try it
<joshuaBPMan>then after you log into i3, you can run "setxkbmap <layout>"
<joshuaBPMan>and I actually something like that config file that you just pasted before...I couldn't get guix to reconfigure properly...
<joshuaBPMan>but I'll go ahead and copy that config again and try it again later...
<joshuaBPMan>If someone finished the port of another login manager (I forget which one), then this may not be such an issue anymore.
<janneke>oops, git send-email did not play nice with guix-patches as I expected...sorry!
<joshuaBPMan>janneke: I'm actually having some issues with when I save guix buffers. I'm somehow not indenting properly...
<happy_gnu[m]>joshuaBPMan: so just setxkbmap then?
<happy_gnu[m]>I can put that on .config/i3/config
<civodul>janneke: we could do something like that, although in practice build farms wouldn't be fast enough
<civodul>that is, you would have substitutes all the time
<civodul>er, wouldn't have substitutes
<happy_gnu[m]>That did it
<joshuaBPMan>happy_gnu[m]: awesome. I'm glad it worked.
<happy_gnu[m]>I just put exec_always setxkbmap -layout es -variant dvorak
<janneke>civodul: yes, we would need a dedicated job for that, or use "nightlies"...all not trivial i guess
<joshuaBPMan>happy_gnu[m]: Good thinking. I'll do the same.
<mouldysa1>What is the best way for me to start a user shepherd daemon when i log in? Would putting it in my .profile do? or is there a better way
<Elronnd>how do I install xorg?
<Elronnd>I tried xorg, Xorg, X11, x11, X, and x, and it says unknown package for all of them
<joshuaBPMan>Elronnd: I love your nickname... hahaha.
<Elronnd>thanks
<joshuaBPMan>unless you are a poweruser of guixSD, you probably don't ever need to run something like "guix package -i xorg"
<joshuaBPMan>but give me just a second and I'll try to give you a better answer.
<Elronnd>then how do I install x?
<cbaines>I think xorg-server is the package
<cbaines>Elronnd, but you probably want to add the slim service to your GuixSD system?
<Elronnd>what's the slim service?
<cbaines>slim is a login manager, like the gdm, kdm, lightdm, ...
<cbaines>are you intending to use Gnome, or something else?
<ng0>oops. next Mate patches will be as much patches as the last one :/
<Elronnd>oh, meh
<joshuaBPMan>Elronnd: the packages is called xorg-server.
<Elronnd>I've been planning on getting something like that running at some point, but startx works fine
<joshuaBPMan>if you want to run startx, then you will have to install X.
<joshuaBPMan>at least I think so.
<Elronnd>........yes
<Elronnd>otherwise, what will it staret?
<joshuaBPMan>So I use slim
<joshuaBPMan>guix package -I xorg-server returns nothing.
<joshuaBPMan>aka my non-root user (joshua) does not have X installed.
<joshuaBPMan>I believe that means that X is running/is started by root.
<Elronnd>is there no such thing as, like, global package installations?
<joshuaBPMan>Elronnd: yes there is.
<joshuaBPMan>But I don't think you really WANT to install xorg-server on your non-root user profile.
<joshuaBPMan>if you want to use startx, you will probably have to.
<joshuaBPMan>BUT if you're ok with using slim, then don't bother with it.
<joshuaBPMan>just use the default desktop.scm config file and run guix system reconfigure desktop.scm
<joshuaBPMan>Then x will be installed for you. X will be installed in your root profile.
<Elronnd>I used bare-bones.scm
<Elronnd>because desktop.scm had a bunch of unnecessary shenanigans that were difficult to remove
<joshuaBPMan>Elronnd: ok. That's fine I suppose. If you're an Arch user I understand. :)
<Elronnd>yep
<joshuaBPMan>I actually dual boot between arch and guixSD, but I prefer to just use desktop.scm.
<Elronnd>is there some guide or tutorial somewhere of how to use guix?
<joshuaBPMan>It's a bit easier.
<joshuaBPMan>Elronnd: yes there is.
<joshuaBPMan>check out the guix manual.
<Elronnd>joshuaBPMan: I'm in a vm right now, actually
<joshuaBPMan>how are you communicating to me right now?
<joshuaBPMan>ok.
<Elronnd> https://www.gnu.org/software/guix/manual/guix.html this?
<joshuaBPMan>are you running guixSD in the vm?
<joshuaBPMan>yup.
<Elronnd>joshuaBPMan: well, guixsd is in the vm. IRC client is outside the vm
<joshuaBPMan>I was going to recommend the manual.
<joshuaBPMan>ok.
<joshuaBPMan>You can either read the web manual.
<Elronnd>well, technically the irc client is on my vps, which is actually a freebsd vm. But
<joshuaBPMan>Or in the vm you can run info guix
<joshuaBPMan>very cool bro.
<joshuaBPMan>Elronnd: there is no official guix wiki. The guix developers would rather have users contribute to the official info documentation.
<Elronnd>ok
<Elronnd>how do I change a password? There's no 'passwd' command and guix package -i passwd returns nothing
<buenouanq>root has it by default
<cbaines>Elronnd, I think passwd is in the shadow package
<cbaines>again, guix package -s passwd is your friend
<cbaines>I also do find /gnu/store -name passwd when I'm looking for things sometimes
<cbaines>someday there will probably be a precomputed index of what packages have what things, which will be nice :)
<happy_gnu[m]>So if I go to firefox
<happy_gnu[m]>And download nightly
<happy_gnu[m]>Or if I download an .AppImage
<happy_gnu[m]>When I try to execute
<joshuaBPMan>Elronnd: You'll have to login as root first
<happy_gnu[m]>I get the error
<joshuaBPMan>set the passwd for root
<Elronnd>joshuaBPMan: I was already root
<joshuaBPMan>via passwd
<happy_gnu[m]>"Bash: file not found"
<joshuaBPMan>yup.
<joshuaBPMan>so you run passwd as root
<Elronnd>how do I install something globally?
<joshuaBPMan>to set your password as root.
<joshuaBPMan>then run passwd <non-root user name> to set the non-root password
<joshuaBPMan>to install something globallyy...
<happy_gnu[m]>Elronnd: you have guixsd installed
<Elronnd>joshuaBPMan: I know how the passwd command works. I'm just annoyed it wasn't already there
<happy_gnu[m]>Or are you going to install
<Elronnd>happy_gnu[m]: I do
<Elronnd>I already installed it successfully in a vm
<happy_gnu[m]>I did
<happy_gnu[m]>cd /
<happy_gnu[m]>find . -name "passwd"
<joshuaBPMan>Why would you be annoyed? THat's how arch works too. It won't install it 'til you need it. :)
<happy_gnu[m]>Then I get something like
<Elronnd>ACTION sighs
<joshuaBPMan>To globally install packages, you need to add them to the (packages) section in your config.
<Elronnd>I already installed passwd
<Elronnd>I want to know how to install it globally
<Elronnd>ok
<happy_gnu[m]>/gnu/../really-long-string/bin/passwd
<Elronnd>joshuaBPMan: yes, but at least basic system utilities like passwd are installed
<happy_gnu[m]>Elronnd: could you share your config file?
<happy_gnu[m]> http://paste.lisp.org
<joshuaBPMan>to install passwd globally add shadow to your (packages) section and you have to add "admin" to your (use-service-modules ...) section in your config file.
<happy_gnu[m]>If I want to use guile-wm
<happy_gnu[m]>I basically just install it
<happy_gnu[m]>And add it here
<happy_gnu[m]>packages (cons* ratpoison i3-wm i3status dmenu ;window managers nss-certs ;for HTTPS access tcpdump %base-packages))
<happy_gnu[m]>Right
<happy_gnu[m]>(packages (cons* ratpoison i3-wm guile-wm i3status dmenu ;window managers nss-certs ;for HTTPS access tcpdump %base-packages))
<happy_gnu[m]>?
<cbaines>happy_gnu[m], are you currently using slim, the login manager?
<cbaines>I ask, as I think its only necessary to install it globaly if you want to login in to guile-vm through slim
<happy_gnu[m]>cbaines: Is that the one that says "press f1 to change" DE or WM
<cbaines>Yep, I think so
<happy_gnu[m]>Ohh
<happy_gnu[m]>So just install guile-vm should work
<happy_gnu[m]>Great
<cbaines>Well, I might be wrong, but I'd perhaps try installing it in your profile first, before installing it system wide if that doesn't work