Skip to content

Commit

Permalink
nix: add codex service definition
Browse files Browse the repository at this point in the history
Referenced issue: #940

Signed-off-by: markoburcul <[email protected]>
  • Loading branch information
markoburcul committed Jan 9, 2025
1 parent 5c40a36 commit bc5d93a
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 2 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
default = codex;
});

nixosModules.codex = import ./nix/codex.nix;

devShells = forAllSystems (system: let
pkgs = pkgsFor.${system};
in {
Expand Down
4 changes: 2 additions & 2 deletions nix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ https://github.com/NixOS/nix/issues/4423

It can be also done without even cloning the repo:
```sh
nix build 'github:codex-storage/nim-codex?submodules=1'
nix build 'git+https://github.com/codex-storage/nim-codex?submodules=1#'
```

## Running

```sh
nix run 'github:codex-storage/nim-codex?submodules=1'
nix run 'git+https://github.com/codex-storage/nim-codex?submodules=1#''
```
Loading

0 comments on commit bc5d93a

Please sign in to comment.