{"id":14968091,"url":"https://github.com/snowfallorg/nix-data","last_synced_at":"2025-03-28T18:32:25.352Z","repository":{"id":60942116,"uuid":"546505424","full_name":"snowfallorg/nix-data","owner":"snowfallorg","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-30T14:42:00.000Z","size":102,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-21T19:48:22.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowfallorg.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}},"created_at":"2022-10-06T07:23:09.000Z","updated_at":"2025-02-14T23:12:13.000Z","dependencies_parsed_at":"2023-01-29T17:45:16.495Z","dependency_job_id":"151e0c32-6e50-47d5-8b86-afaa7f260045","html_url":"https://github.com/snowfallorg/nix-data","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"36fb938713742aa0efefa78d34825c148a844990"},"previous_names":["snowflakelinux/nix-data"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fnix-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fnix-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fnix-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowfallorg%2Fnix-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowfallorg","download_url":"https://codeload.github.com/snowfallorg/nix-data/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245999329,"owners_count":20707554,"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":[],"created_at":"2024-09-24T13:39:16.798Z","updated_at":"2025-03-28T18:32:24.620Z","avatar_url":"https://github.com/snowfallorg.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\nNix Data\n===\n[![crates.io][crates badge]][crate]\n[![Built with Nix][builtwithnix badge]][builtwithnix]\n[![License: MIT][MIT badge]][MIT]\n\n\u003c/div\u003e\n\nA set of modules for easily managing Nix and NixOS packages and options.\n\nThis crate contains a [cache](./src/cache) module for caching Nix/NixOS packages and options,\nsuch as the latest `packages.json` and `options.json` from the NixOS cache.\n\nThis crate also contains a [config](./src/config) module for maintaining a set of important Nix/NixOS details,\nsuch as the location of the users `configuration.nix` file, and whether they are using flakes or not.\nThis can be useful so that not ever application/utility needs to maintain their own config files and preferences.\n\n# Example\n```rust\nextern crate nix_data;\n \nfn main() {\n    let userpkgs = nix_data::cache::profile::getprofilepkgs_versioned();\n    if let Ok(pkgs) = userpkgs {\n        println!(\"List of installed nix profile packages\");\n        println!(\"===\");\n        for (pkg, version) in pkgs {\n            println!(\"{}: {}\", pkg, version);\n        }\n    }\n}\n```\n\n[crates badge]: https://img.shields.io/crates/v/nix-data.svg?style=for-the-badge\n[crate]: https://crates.io/crates/nix-data\n[builtwithnix badge]: https://img.shields.io/badge/Built%20With-Nix-41439A?style=for-the-badge\u0026logo=nixos\u0026logoColor=white\n[builtwithnix]: https://builtwithnix.org/\n[MIT badge]: https://img.shields.io/badge/License-MIT-blue.svg?style=for-the-badge\n[MIT]: https://opensource.org/licenses/MIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowfallorg%2Fnix-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowfallorg%2Fnix-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowfallorg%2Fnix-data/lists"}