Last active
January 18, 2022 01:52
-
-
Save tribals/9529b60d836cfede818724b28cd0a5ef to your computer and use it in GitHub Desktop.
guix shell --container and host guix daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Pass only daemon-socket | |
bash-5.1$ guix shell -CNP --share=/var/guix/daemon-socket guix busybox | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ readlink -f ~/.guix-profile | |
/gnu/store/xp975nkjikb5gzdh45ig1kh9qddcrvlv-profile | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ guix package -I | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ guix package -i hello | |
guix package: warning: Consider running 'guix pull' followed by | |
'guix package -u' to get up-to-date packages and security updates. | |
The following package will be installed: | |
hello 2.10 | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ hello | |
sh: hello: command not found | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ which hello | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ exit | |
### Pass whole /var/guix, *breaks* user's default profile | |
bash-5.1$ guix shell -CNP --share=/var/guix guix busybox | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ readlink -f ~/.guix-profile | |
/gnu/store/xp975nkjikb5gzdh45ig1kh9qddcrvlv-profile | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ guix package -I | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ guix package -i hello | |
guix package: warning: Consider running 'guix pull' followed by | |
'guix package -u' to get up-to-date packages and security updates. | |
The following package will be installed: | |
hello 2.10 | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ date | |
Tue Jan 18 01:19:03 UTC 2022 | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ guix package -I | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ hello | |
sh: hello: command not found | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ which hello | |
tosh@universe /tmp/tmp.EfI1Syh6ug [env]$ exit | |
bash-5.1$ | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Before invoking `guix install` with whole /var/guix | |
bash-5.1$ readlink -f ~/.guix-profile | |
/gnu/store/yps9dg1x0vbj13pv2lpaqic702227k7c-profile | |
### After invoking `guix install` with whole /var/guix | |
bash-5.1$ readlink -f ~/.guix-profile | |
/gnu/store/pn0vwl8prdwzdpz4iij9j26nc9p4pafx-profile | |
bash-5.1$ date | |
Tue Jan 18 01:19:06 UTC 2022 | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment