{"id":31003974,"url":"https://github.com/timotheemathieu/guix-env","last_synced_at":"2025-09-13T01:52:08.899Z","repository":{"id":254126270,"uuid":"845571452","full_name":"TimotheeMathieu/guix-env","owner":"TimotheeMathieu","description":"Guix and Virtualenv used together for a reproducible python development environment","archived":false,"fork":false,"pushed_at":"2024-12-30T09:26:30.000Z","size":57,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-30T10:31:20.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimotheeMathieu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-21T14:01:18.000Z","updated_at":"2024-12-30T09:26:33.000Z","dependencies_parsed_at":"2024-08-21T15:57:02.477Z","dependency_job_id":"562a8ce1-71d4-4bdb-a5fa-7b56626b18f1","html_url":"https://github.com/TimotheeMathieu/guix-env","commit_stats":null,"previous_names":["timotheemathieu/guix-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TimotheeMathieu/guix-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimotheeMathieu%2Fguix-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimotheeMathieu%2Fguix-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimotheeMathieu%2Fguix-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimotheeMathieu%2Fguix-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimotheeMathieu","download_url":"https://codeload.github.com/TimotheeMathieu/guix-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimotheeMathieu%2Fguix-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274907867,"owners_count":25371822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-13T01:51:45.247Z","updated_at":"2025-09-13T01:52:08.884Z","avatar_url":"https://github.com/TimotheeMathieu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Guix \u0026 poetry environments for reproducible python development\n\nThis package give a cli tool to construct and enter environments constructed through guix (for the system-level packages) and optionally a poetry environment (for python packages). My main use-case are: having deployable environment that can run on server, archiving projects that I want to reliably run in several years and having clean environment to test stuff without the bloat of my main system.\n\n## Usage\nGuix must be installed on the system, see [the guix manual](https://guix.gnu.org/manual/en/html_node/Binary-Installation.html) to do this.\n\n```\npip install git+https://github.com/TimotheeMathieu/guix-env \nguix-env create my_env_name\n```\n\nThis should create a directory in `~/.guix-env` containing files needed for the environment to run. Note that every file generated by guix-env will be saved into `~/.guix-env` and removing the environment is as simple as removing this directory (also doable through the `guix-env rm` command). Then to spawn a shell in the environment, do\n\n```\nguix-env shell my_env_name\n```\n\nThe first run may be a bit slow because of guix downloading a bunch of packages but the second run should be faster as guix cache the packages it uses in `/gnu/store` (remark: don't forget to use `guix gc` to clear the store periodically).\n\nThen, you are good to go and do anything you wish in your environment. You are in a python virtual environment that is managed with poetry for reproducibility purpose, to install new python package from inside the environment, use `gep add package_name`, `gep` stands for guix-env-poetry and is just an alias of poetry that install at the right place. To add new guix package, use `guix-env add-guix my_env_name my_package_name` from outside the environment. \n\n\nSome remarks:\n- I included some guix and python packages that are convenient for basic shell commands and basic graphical display.\n- I use zsh shell in the guix-env environments.\n- Every environment has its own .local and .zshrc. They can be accessed in $HOME/.guix_env/env_name\n- I do not share the home directory, by default the only directory shared are the current directory and its children (default from guix shell).\n- I use the Filesystem Hierarchy Standard (FHS) emulator of guix shell to populate /bin and /lib apropriately for some python compatibility.\n- I use a poetry cache specific to guix-env environments. It is shared among the guix envs but not with the host system.\n- I added a channel file with the guix channel in which I made the last working test so if there is something wronggoing on, try to use this channel file, it should work then.\n\n## TODO\n\n- Better documentation -- include explanations of how it works: poetry, what do we share (what we do not share, e.g. .local), how to tinker with it, what changes are made...\n- Comment more\n- Make tests\n- Have an alias that install guix_env in a guix shell environment so that we can install \u0026 use guix-env in a reproducible maneer and without needing to install anything.\n- Feature: rollback, at first this could be through git repo that auto-commit.\n- Handle GPU ?\n- Feature: use tmux inside the env and share tmp to make a sort of daemon. https://stackoverflow.com/questions/16398850/create-new-tmux-session-from-inside-a-tmux-session\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimotheemathieu%2Fguix-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimotheemathieu%2Fguix-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimotheemathieu%2Fguix-env/lists"}