mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
add flake.nix
Co-authored-by: Tobias Happ <Gerschtli@users.noreply.github.com>
This commit is contained in:
parent
abf7f56cb6
commit
9c7c0a9672
6 changed files with 61 additions and 5 deletions
16
README.md
16
README.md
|
|
@ -157,7 +157,23 @@ if you are planning to maintain a long-term fork that users can update from.
|
|||
In case you only care about updates through wiping the data,
|
||||
you shouldn't need a binary cache for that.
|
||||
|
||||
## Nix flakes
|
||||
|
||||
Example, to use with nix flakes:
|
||||
|
||||
```nix
|
||||
{
|
||||
description = "nix-on-droid configuration";
|
||||
|
||||
inputs.nix-on-droid.url = "/home/bbigras/src/nix-on-droid";
|
||||
|
||||
outputs = { nix-on-droid, ... }: {
|
||||
nix-on-droid = (nix-on-droid.lib.aarch64-linux.nix-on-droid { config = ./your_config.nix; } ).activationPackage;
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
Build with `nix build .#nix-on-droid --impure`.
|
||||
|
||||
## Tips
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue