{"id":35004174,"url":"https://github.com/stepbrobd/x","last_synced_at":"2026-05-22T02:34:27.852Z","repository":{"id":322865058,"uuid":"1091194883","full_name":"stepbrobd/x","owner":"stepbrobd","description":"all the weird stuff goes here","archived":false,"fork":false,"pushed_at":"2026-02-26T21:28:06.000Z","size":29675,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-27T03:33:20.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/stepbrobd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/funding.yaml","license":"license.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["stepbrobd"]}},"created_at":"2025-11-06T17:23:28.000Z","updated_at":"2026-02-26T21:28:09.000Z","dependencies_parsed_at":"2025-11-06T20:13:19.657Z","dependency_job_id":"baecc91d-1b7d-4cb0-9dfb-1ce20f488249","html_url":"https://github.com/stepbrobd/x","commit_stats":null,"previous_names":["stepbrobd/x"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stepbrobd/x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepbrobd%2Fx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepbrobd%2Fx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepbrobd%2Fx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepbrobd%2Fx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepbrobd","download_url":"https://codeload.github.com/stepbrobd/x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepbrobd%2Fx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33325750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"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-12-27T04:28:43.826Z","updated_at":"2026-05-22T02:34:27.835Z","avatar_url":"https://github.com/stepbrobd.png","language":"OCaml","funding_links":["https://github.com/sponsors/stepbrobd"],"categories":[],"sub_categories":[],"readme":"# All the weird stuff goes here\n\nThis is basically a monorepo where I dump everything that can be made public.\n\n## Structure\n\n- [`lib`](./lib): [autopilot](https://github.com/stepbrobd/autopilot) evaluation\n  entry point, Nix related helper functions\n- [`modules`](./modules): all modules that will be picked up by autopilot, then\n  loaded with [flake-parts](https://flake.parts)\n- [`pkgs`](./pkgs): packages from [nixpkgs](https://github.com/nixos/nixpkgs)\n  that are globally overridden, my own stuff, it's a mess...\n\n## Module portability\n\nFor all modules exposed under `./modules`, `importApplyWithArgs` is used to\noptionally apply a two level argument. For example, if the file importing is in\n`./modules/nixos`, we can have:\n\n```nix\n{ lib, inputs, ... } @ arg0:\n\n{ config, lib, modulesPath, options, pkgs, ... } @ arg1:\n\n{ ... } # actual content\n```\n\nWhere `arg0` is from `./modules/flake/modules/default.nix`, includes the `lib`\nfrom `builtins // nixpkgs.lib`, and with all locally defined helper functions\nunder `./lib` and extensions declared in `autopilot`, and is not compatible with\nthe `lib` in `arg1`.\n\nAll variables from `arg1` are standard NixOS module arguments, but if `lib` is\nneeded, it must be pulled in from `arg0` (precedence), or `pkgs.lib`:\n\n```nix\n{ config, lib, ... }: # \u003c-\n\nlib.deepMergeAttrsList ... # pull something from `config`\n```\n\nWill resulted in an error (`config` not found), and\n\n```nix\n{ lib, ... }: # \u003c-\n\n{ config, ... }:\n\nlib.deepMergeAttrsList ... # pull something from `config`\n```\n\nMust be used. But if the following is allowed since the application of `arg0` is\noptional based on the names inside:\n\n```nix\n{ config, ... }:\n\n{ ... } # do something dependent on `config`\n```\n\nNote that this behavior only apply one level deep, i.e. only modules imported\nusing `modulesFor` will get automatic argument injection. If `arg0` is needed in\nnested modules or files imported from top-level module:\n\n```nix\narg0:\n\n{ config, ... }:\n\n{\n  imports = [\n    (import ./some-module.nix arg0) # `arg0` is not optionally here, the second level arg is the regular module arg\n  ];\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepbrobd%2Fx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepbrobd%2Fx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepbrobd%2Fx/lists"}