Skip to content

Commit

Permalink
Add NixOS install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Leixb committed Apr 3, 2024
1 parent 0005a0a commit 7a7f42f
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 7a7f42f

Please sign in to comment.