Skip to content

Commit

Permalink
Add NixOS install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Leixb authored and Sapd committed Apr 6, 2024
1 parent bd28a2e commit 9af6929
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,22 @@ RHEL and CentOS also require the epel-repository.

`emerge -a app-misc/headsetcontrol`

#### NixOS

`headsetcontrol` is included in nixpkgs. To use it without installing, use:

`nix run nixpkgs#headsetcontrol`

To install it globally, add the following to your `configuration.nix`:
```nix
environment.systemPackages = [ pkgs.headsetcontrol ];
```

For the udev rules, add the following to your `configuration.nix`:
```nix
services.udev.packages = [ pkgs.headsetcontrol ];
```

### Compiling

```bash
Expand Down

0 comments on commit 9af6929

Please sign in to comment.