mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-21 21:48:21 -05:00
docs: add NixOS installation
This commit is contained in:
parent
ba4c3b0612
commit
47bbbcd3c4
@ -162,4 +162,41 @@ cd websurfx
|
||||
git checkout stable
|
||||
```
|
||||
|
||||
## NixOS
|
||||
|
||||
A flake.nix has been provided to allow installing `Websurfx` easily. It utilizes [nearsk](https://github.com/nix-community/naersk) to automatically generate a derivation based on `Cargo.toml` and `Cargo.lock`.
|
||||
|
||||
The flake has several outputs, which may be consumed:
|
||||
|
||||
~~~bash
|
||||
nix build .#websurfx
|
||||
nix run .#websurfx
|
||||
~~~
|
||||
|
||||
You may include it in your own flake by adding this repo to its inputs and adding it to `environment.systemPackages`
|
||||
|
||||
~~~nix
|
||||
{
|
||||
description = "My configuration";
|
||||
|
||||
inputs = {
|
||||
websurfx.url = "github:neon-mmd/websurfx";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }@inputs: {
|
||||
nixosConfigurations = {
|
||||
hostname = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [{
|
||||
environment.systemPackages = [
|
||||
inputs.websurfx.websurfx
|
||||
];
|
||||
}];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
~~~
|
||||
|
||||
[⬅️ Go back to Home](./README.md)
|
||||
|
Loading…
Reference in New Issue
Block a user