Nitrokey: Difference between revisions

From NixOS Wiki
imported>Neutrocyte
Created page with "This article describes how you can use your [https://www.nitrokey.com Nitrokey] Nitrokey with NixOS ==Installation== Either install the Nitrokey-app Ad..."
 
imported>Neutrocyte
No edit summary
Line 2: Line 2:


==Installation==
==Installation==
Either install the Nitrokey-app Ad-hoc with
You also want to add the nitrokey udev rules and enable the gpg agenent
<syntaxHighlight lang=bash>$ nix-env -iA nixos.nitrokey-app</syntaxHighlight>
or declarative by adding it to your configuration.nix.
You also want to enable the udev rules and the PCSC-Lite daemon with
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
services.pcscd.enable = true;
programs = {
  ssh.startAgent = false;
  gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
  };
};
</syntaxHighlight>
</syntaxHighlight>

Revision as of 18:47, 20 April 2022

This article describes how you can use your Nitrokey Nitrokey with NixOS

Installation

You also want to add the nitrokey udev rules and enable the gpg agenent

services.udev.packages = [ pkgs.nitrokey-udev-rules ];
programs = {
  ssh.startAgent = false;
  gnupg.agent = {
    enable = true;
    enableSSHSupport = true;
  };
};