{"id":13688398,"url":"https://github.com/yaxitech/ragenix","last_synced_at":"2025-05-16T08:00:20.069Z","repository":{"id":38015011,"uuid":"365368966","full_name":"yaxitech/ragenix","owner":"yaxitech","description":"age-encrypted secrets for NixOS; drop-in replacement for agenix","archived":false,"fork":false,"pushed_at":"2025-05-04T02:34:53.000Z","size":326,"stargazers_count":338,"open_issues_count":10,"forks_count":19,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-04T03:28:52.357Z","etag":null,"topics":["age","age-encryption","agenix","nix","nix-flake","nixos","rage"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yaxitech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2021-05-07T22:41:54.000Z","updated_at":"2025-04-27T14:50:06.000Z","dependencies_parsed_at":"2023-09-24T05:35:24.499Z","dependency_job_id":"5fcca47c-fd4a-4abe-9332-1f9dd5735d2b","html_url":"https://github.com/yaxitech/ragenix","commit_stats":{"total_commits":155,"total_committers":14,"mean_commits":"11.071428571428571","dds":0.6064516129032258,"last_synced_commit":"687ee92114bce9c4724376cf6b21235abe880bfa"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxitech%2Fragenix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxitech%2Fragenix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxitech%2Fragenix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaxitech%2Fragenix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaxitech","download_url":"https://codeload.github.com/yaxitech/ragenix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493382,"owners_count":22080126,"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","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":["age","age-encryption","agenix","nix","nix-flake","nixos","rage"],"created_at":"2024-08-02T15:01:12.995Z","updated_at":"2025-05-16T08:00:20.021Z","avatar_url":"https://github.com/yaxitech.png","language":"Rust","funding_links":[],"categories":["nix","Rust","Security","others","Integrations"],"sub_categories":[],"readme":"# ragenix\n\n[![Build status](https://img.shields.io/github/actions/workflow/status/yaxitech/ragenix/main.yaml?branch=main)](https://github.com/yaxitech/ragenix/actions?query=branch%3Amain)\n[![License](https://img.shields.io/github/license/yaxitech/ragenix)](http://www.apache.org/licenses/LICENSE-2.0.html)\n[![Written in Rust](https://img.shields.io/badge/code-rust-orange)](https://www.rust-lang.org)\n[![ragenix(1)](https://img.shields.io/badge/man-ragenix(1)-blue)](https://htmlpreview.github.io/?https://github.com/yaxitech/ragenix/blob/main/docs/ragenix.1.html)\n\n`ragenix` provides age-encrypted secrets for NixOS systems which live in the Nix store\nand are decrypted on system activation. Using `ragenix` to create, edit and rekey secrets\nis possible on any system which has Nix installed—with particular support for NixOS and macOS.\n\n`ragenix` is a drop-in replacement for [@ryantm](https://github.com/ryantm)'s\n[`agenix`](https://github.com/ryantm/agenix) written in Rust. It aims at being fully compatible\nwith its flake while offering more robust command line parsing, additional validation logic,\nplugin support, shell completions, and solid tests.\n\n**As opposed to `agenix`, `ragenix` only strives for supporting Nix Flakes**.\n\n## Installation\n\nAs `ragenix` seeks to replace `agenix` without breaking compatibility, getting started with age-encrypted\nsecrets or switching from `agenix` to `ragenix` is easy: just follow the original [instructions from `agenix`](\nhttps://github.com/ryantm/agenix#installation) while replacing references to\n`github.com/ryantm/agenix` with `github.com/yaxitech/ragenix`. Everything else should remain the\nsame as the `ragenix` package provides aliases for a) an `agenix` package and b) the `agenix` binary.\nThe flake also exposes a NixOS and Darwin module which is passed through from the `agenix` flake.\n\n## Usage\n\n`ragenix` resembles the command line options and behavior of `agenix`.\nFor the full documentation, read the [ragenix(1) man page](https://htmlpreview.github.io/?https://github.com/yaxitech/ragenix/blob/main/docs/ragenix.1.html).\n\n```\nUSAGE:\n    ragenix [OPTIONS] \u003c--edit \u003cFILE\u003e|--rekey|--schema\u003e\n\nOPTIONS:\n    -e, --edit \u003cFILE\u003e                  edits the age-encrypted FILE using $EDITOR\n        --editor \u003cEDITOR\u003e              editor to use when editing FILE [env: EDITOR=vim]\n    -h, --help                         Print help information\n    -i, --identity \u003cPRIVATE_KEY\u003e...    private key to use when decrypting\n    -r, --rekey                        re-encrypts all secrets with specified recipients\n        --rules \u003cRULES\u003e                path to Nix file specifying recipient public keys [env:\n                                       RULES=] [default: ./secrets.nix]\n    -s, --schema                       Prints the JSON schema Agenix rules have to conform to\n    -v, --verbose                      verbose output\n    -V, --version                      Print version information\n```\n\nThe `ragenix` package also provides shell completions for `bash`, `zsh`, and `fish`. Make sure to install the package with either `nix profile install github:yaxitech/ragenix`, `environment.systemPackages` on NixOS or `home.packages` for home-manager.\n\n## Contributions\n\nWe'd love to see PRs from you! Please consider the following guidelines:\n\n- `ragenix` stays compatible to `agenix`. Please make sure your contributions\n  don't introduce breaking changes.\n- The secrets configuration happens through a Nix configuration.\n- New features should support both NixOS and macOS, if applicable.\n- Update the manpage, if necessary\n\nThe CI invokes `nix flake check`. Some of the checks invoke `nix` itself.\nTo allow those tests to run `nix`, you have to enable the `recursive-nix` feature.\nOn NixOS, you can put the following snippet into your `configuration.nix`:\n\n```nix\n{\n  nix = {\n    extraOptions = ''\n      experimental-features = nix-command flakes recursive-nix\n    '';\n    systemFeatures = [ \"recursive-nix\" ];\n  };\n}\n```\n\n## Similar projects / acknowledgements \n\nThe [`agenix-cli`](https://github.com/cole-h/agenix-cli) project is quite similar to ragenix. In fact, it\nserved as an inspiration (thanks!). Both projects have in common that they aim\nat replacing the fragile shell script with a version written in Rust. In contrast to `ragenix`, however,\n`agenix-cli` is not compatible to the original `agenix`. It uses a TOML configuration file to declare rules\non a repository level (similar to `.sops.yaml`). While having a global rules file might be\nuseful for some (particularly if you're looking to switch from [`sops-nix`](\nhttps://github.com/Mic92/sops-nix)), we wanted to continue to define our rules using Nix expressions which\nreside in different directories.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaxitech%2Fragenix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaxitech%2Fragenix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaxitech%2Fragenix/lists"}