`guix pull` fails after fresh install

2021-07-18 Thread Gabriel Wicki
Hello Guix Community!


I ran into an issue after freshly installing Guix System.  When logged in
as a normal user, `guix pull` printed the following output:

Migrating profile generations to '/var/guix/profiles/per-user/user'...
guix pull: error: symlink: File exists: 
"/var/guix/profiles/per-user/user/current-guix"


`guix pull` was invoked before by root, but guix has not been called by the
unprivileged user before.


$ ls -l /var/guix/profiles/per-user/user/
total 0
lrwxrwxrwx 1 user users 19 Jul 18 22:13 current-guix -> current-guix-0-link
lrwxrwxrwx 1 user users 19 Jul 18 22:43 guix-profile -> guix-profile-2-link
lrwxrwxrwx 1 user users 51 Jul 18 22:23 guix-profile-1-link -> 
/gnu/store/skvmv3zpzd06pj0jq57m0xjvx0hdjnkr-profile
lrwxrwxrwx 1 user users 51 Jul 18 22:43 guix-profile-2-link -> 
/gnu/store/mzn60p0kd8kiwdj9qqan73664yn6b0s0-profile
-rw-r--r-- 1 user users  0 Jul 18 22:40 guix-profile.lock


I tried:

 * guix gc
 * guix gc -R
 * guix gc --referrers
 * guix gc --verify
 * guix gc --verify=repair

but to no avail.


Should I just delete current-guix?  Link it to my current profile?  Or the
system's profile?


Thanks in advance for your advice,

Gabriel



Re: xmodmap doesn't before pressing any button keyboard

2021-07-18 Thread stuebinm
I also use EXWM, and made good experiences with setting keyboard 
remapping options directly in my system's config.scm (via the :options 
of keyboard-layout, which sets XKB options; see the manual for examples: 
https://guix.gnu.org/de/manual/en/html_node/Keyboard-Layout.html).


However, I just use it to remap capslock to escape (for vim/evil-mode), 
so if you need more, I'm not sure if it'll work for you — I've never 
used xmodmap, I'm not sure if you can do everything using XKB options 
that xmodmap can do — at first glance xmodmap seems more general.


~stuebinm

On 18.07.21 16:41, Akib Azmain Turja wrote:

I have setup my Emacs iwth EXWM.  I am trying to remap several keys to
avoid repetitive strain injury (RSI), also known as Emacs pinky.  To
accomplish that, I am using xmodmap.  It works perfectly when I invoke
the command directly.  However it doesn't work when I put it in Emacs
startup files.  After several days of research, I discovered that
xmodmap only works when I have pressed atleast one key in my keyboard.
Any solutions?





OpenPGP_signature
Description: OpenPGP digital signature


Re: xmodmap doesn't before pressing any button keyboard

2021-07-18 Thread Mekeor Melire
hello!

you are using Guix-system, right? you might want to add some extra
X.org-configuration to your systems declaration. for example, if you're
using the Slim login-manager, here's a snippet from my
Guix-system-declaration which makes X.org map caps-lock to ctrl while
using the german keyboard layout:

--8<---cut here---start->8---
(slim-service
  #:startx (xorg-start-command
#:configuration-file (xorg-configuration-file
  #:extra-config (list
"Section \"InputClass\"
Identifier \"Keyboard Defaults\"
MatchIsKeyboard \"on\"
Option \"XkbLayout\"  \"de\"
Option \"XkbOptions\" \"ctrl:nocaps\"
EndSection"
--8<---cut here---end--->8---


how do you start EXWM? if you start it with an ~/.xsession file, that's
also a good place to put your keyboard-initialization code in, as far as
i know.


ciao
mekeor


2021-07-18 / 20:41 / akib8...@gmail.com:

> [[PGP Signed Part:Undecided]]
> I have setup my Emacs iwth EXWM.  I am trying to remap several keys to
> avoid repetitive strain injury (RSI), also known as Emacs pinky.  To
> accomplish that, I am using xmodmap.  It works perfectly when I invoke
> the command directly.  However it doesn't work when I put it in Emacs
> startup files.  After several days of research, I discovered that
> xmodmap only works when I have pressed atleast one key in my keyboard.
> Any solutions?




xmodmap doesn't before pressing any button keyboard

2021-07-18 Thread Akib Azmain Turja
I have setup my Emacs iwth EXWM.  I am trying to remap several keys to
avoid repetitive strain injury (RSI), also known as Emacs pinky.  To
accomplish that, I am using xmodmap.  It works perfectly when I invoke
the command directly.  However it doesn't work when I put it in Emacs
startup files.  After several days of research, I discovered that
xmodmap only works when I have pressed atleast one key in my keyboard.
Any solutions?

-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key.  It's fingerprint is:

7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

See https://emailselfdefense.fsf.org/ to learn more and protect your
emails and yourself from surveillance.


signature.asc
Description: PGP signature


Re: Docker image sizes

2021-07-18 Thread Akib Azmain Turja
I think it is expected.  Docker images use only the kernel from the host
OS when the host kernel is Linux (the host kernel, not the host OS).
Wikipedia says:

> Docker is a set of platform as a service (PaaS) products that use
> OS-level virtualization to deliver software in packages called
> containers.[6]  Containers are isolated from one another and bundle
> their own software, libraries and configuration files; they can
> communicate with each other through well-defined channels.[7]

TJ writes:

> Hi,
>
> I was trying to package a project in docker and to start I did a fairly
> straightforward command:
>
> $ guix pack --format=docker elixir
>
> It generated an image quite a bit larger than I expected.
>
> -r--r--r--2 root  root  461M Dec 31  1969 
> gfnqg760z22vr8kbvyzdzhs1hc5766c9-elixir-docker-pack.tar.gz
>
> After uncompressing, this is taking 1.5GB and is including quite a few
> unnecessary packages for a minimal image - see below for the top 30.
>
> $ du -s * |sort -g -r | head -n 30
> 155804  g3idjpqsp2p2d163qfzskxj4k58nrx7f-llvm-11.0.0
> 145164  m59c9hj9d4n65maimbpmx2xq56d2mvqs-mesa-20.2.4
> 111708  q233v022vziq8ry18y8q959k110vclvf-webkitgtk-2.32.1
> 110840  cgqj7xswlpvhzxwri3mcqfs1fhbgnka8-erlang-23.2.1
> 103940  qk5v5vzwfl066zch67nxlv4x7aspf0fx-samba-4.13.4
> 93972   cw8brvxkzp4kmdqldsv1wkvi2cv4kq4x-python-3.8.2
> 64620   8zvc5mvk0xm3ygrxsgpyy5ilxb5rzjry-perl-5.30.2
> 56300   18hp7flyb3yid3yp49i6qcdq0sbi5l1n-guile-3.0.2
> 52748   nscar35x261xky08qih2ddxq1b105qwd-gtk+-3.24.24
> 41092   fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31
> 39544   2wqjj3mkqdvsvksndr2hpjpi7qqwi7kr-icu4c-66.1
> 35848   fi1mdh30b5q6zvplvayn68lb575xcd1k-ghostscript-with-cups-9.52
> 34768   01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib
> 34188   wjmydimw608k61qxmsifkam11jwgpric-wxwidgets-3.0.5.1
> 24224   jv6v8p8jbjf6hpscgp3dgdfylrdhldi1-gdk-pixbuf+svg-2.40.0
> 18488   n8awazyldv9hbzb7pjcw76hiifmvrpvd-coreutils-8.32
> 18464   57xj5gcy1jbl9ai2lnrqnpr0dald9i65-coreutils-8.32
> 16596   jsqxxnaj5p8a22mrsvl679gi7jl26z4j-glib-2.62.6
> 16400   aza259fsrb841zwb4rjzfzs2nrsf28f1-eudev-3.2.9
> 16060   9z185s19zp2p9yq8gdayxgibaphxfcps-cups-2.3.3
> 15604   4l2il4wcxjb443xwc2arwixpq28pbfvl-cups-minimal-2.3.3
> 14140   02z5vgdhgxw4gcjvhx51mvy1ax4lzxmp-fftwf-3.3.8
> 13912   zzkly5rbfvahwqgcs7crz0ilpi7x5g5p-ncurses-6.2
> 13096   lv92cmzqjpb8mxygpqdvh0mkkkfi9vmz-libxcb-1.14
> 10876   n3pjsbpd51x6vqikfglmrdbijflammf6-gst-plugins-base-1.18.2
> 10588   sayvymkqjl328rsivzlp9r46337rvdmz-pulseaudio-14.0
> 10084   7y3lvk3xf4im8n44337mc6y0ccysvfia-font-dejavu-2.37
> 9888hr1p9l1waam8lk2csdwbzaipf14h9n33-gstreamer-1.18.2
> 9576a45p39mgqvfd8kjwibyr0q42k1mw7gmf-util-linux-2.35.1-lib
> 8812z3vbqvpgcz7lag9qci074hjry4j3120i-shared-mime-info-1.15
>
> I wouldn't expect to need llvm, mesa, webkit, samba, python, perl, gtk, cups, 
> pulseaudio, etc, etc. in a production image.
>
> What would be the recommended way to minimize the derivation?
>
> Thanks,
>
> TJ

--
Akib Azmain Turja

This message is signed by me with my GnuPG key. It's fingerprint is:

7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

See https://emailselfdefense.fsf.org/ to learn more and protect your emails
and yourself from surveillance.
-- 
Akib Azmain Turja

This message is signed by me with my GnuPG key. It fingerprint is:

7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

See https://emailselfdefense.fsf.org/ to learn more and protect your emails
and yourself from surveillance.


signature.asc
Description: PGP signature