Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TimotheeMathieu committed Aug 23, 2024
1 parent 15e938b commit c118374
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ The first run may be a bit slow because of guix downloading a bunch of packages

Then, you are good to go and do anything you wish in your environment. You are in a python virtual environment and you can install new python packages with pip. To add new guix package, use `guix-env add my_env_name my_package_name` from outside the environment.

One of the qualities of guix-env is its *reproducibility*, you can use the three files `manifest.scm`, `channels.scm` and `requirements.txt` that are in `~/.guix-env/my_env_name` to reproduce the environment using the following command:gi
One of the qualities of guix-env is its *reproducibility*, you can use the three files `manifest.scm`, `channels.scm` and `requirements.txt` that are in `~/.guix-env/my_env_name` to reproduce the environment using the following command:
```
guix-env create my_env_name --channel-file channels.scm --manifest-file manifest.scm --requirements-file requirements.txt
```
Remark that it is not perfect reproductibility because the requirements.txt file is created using pip whether it would be better to use a lock file generated by `pip-tools` or `poetry`, for now this is not implemented.
Remark that it is not perfect reproductibility because the requirements.txt file is created using pip whether it would be better to use a lock file generated by `pip-tools` or `poetry`, or even better to use guix as python package manager. For now this is not implemented.

## TODO

- Better documentation
- better requirements.txt -- switch to poetry ?
- better requirements.txt -- switch to poetry or pip-tools to handle locks?
- Tests
- Handle GPU ?
- Feature: rollback, similar to what can be done with guix-home.
1 change: 1 addition & 0 deletions guix_env/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"which",
"tcl",
"gtk",
"grep",
"xcb-util", # xcb/dbus is for matplotlib to be able to plt.show
"xcb-util-wm",
"xcb-util-image",
Expand Down
4 changes: 4 additions & 0 deletions guix_env/template_scripts/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ down-line-or-local-history() {
}
zle -N down-line-or-local-history

bindkey "\e[1~" beginning-of-line # Home
bindkey "\e[4~" end-of-line # End
bindkey "\e[7~" beginning-of-line # Home
bindkey "\e[8~" end-of-line # End
bindkey "^E" end-of-line
bindkey "^A" beginning-of-line

Expand Down

0 comments on commit c118374

Please sign in to comment.