Readme : Add info on how to build and integrate.

This commit is contained in:
Dmitry Voronin 2024-02-08 01:43:55 +03:00
parent b2dbb6ff9e
commit a39257e8fd

25
Readme.md Normal file
View file

@ -0,0 +1,25 @@
# NixOS Sample package.
## How to build.
```text
nix build
```
## How to integrate into the system (flakes).
```nix
{
inputs = {
sampleapp.url = "git+https://git.voronind.com/voronind/nixos_sample_package.git";
};
}
```
```nix
{
environment.systemPackages = with pkgs; [
inputs.sampleapp.packages.${pkgs.system}.default
];
}
```