From 7a7f42fa6fdce1a32229cf3ca512216eb023f7c1 Mon Sep 17 00:00:00 2001 From: LeixB Date: Wed, 3 Apr 2024 18:42:58 +0200 Subject: [PATCH] Add NixOS install instructions --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 54b2f4d..3bf2b1a 100644 --- a/README.md +++ b/README.md @@ -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