Update README.md

This commit is contained in:
Janik H 2023-05-28 00:07:14 +02:00
parent be1fed9ee7
commit 81cdcc80ed
1 changed files with 8 additions and 3 deletions

View File

@ -42,12 +42,17 @@ This repository also contains a Nix flake. It can be used in a NixOS configurati
1. Add flake to inputs: 1. Add flake to inputs:
```nix ```nix
url-eater.url = "github:AgathaSorceress/url-eater"; url-eater.url = "github:AgathaSorceress/url-eater";
url-eater.inputs.nixpkgs.follows = "nixpkgs"; #optional
``` ```
2. Import NixOS module 2. Adding output:
```nix
outputs = inputs@{ self, nixpkgs, url-eater, ... }:
```
3. Import NixOS module
```nix ```nix
imports = [ url-eater.nixosModule ]; imports = [ url-eater.nixosModule ];
``` ```
3. Configure the module: 4. Configure the module:
```nix ```nix
{ ... }: { { ... }: {
services.url-eater = { services.url-eater = {
@ -75,4 +80,4 @@ The output binary will be in `target/release/url-eater`
Alternatively, Alternatively,
```sh ```sh
nix build github:AgathaSorceress/url-eater nix build github:AgathaSorceress/url-eater
``` ```