nixos-conf/hardware-specific/onlykey.nix

38 lines
845 B
Nix
Raw Normal View History

2024-10-10 19:49:52 +03:00
{ config, pkgs, ... }:
{
assertions = [
{
assertion = config.users.users ? "vili";
message = "User 'vili' needed for onlykey!";
}
];
environment.systemPackages = with pkgs; [
2024-10-15 19:49:04 +03:00
(onlykey.override (prev: {
node_webkit = prev.node_webkit.overrideAttrs {
version = "0.71.1";
2024-10-15 19:49:04 +03:00
src = fetchurl {
url = "https://dl.nwjs.io/v0.71.1/nwjs-v0.71.1-linux-x64.tar.gz";
hash = "sha256-bnObpwfJ6SNJdOvzWTnh515JMcadH1+fxx5W9e4gl/4=";
};
};
}))
2024-10-10 19:49:52 +03:00
onlykey-cli
onlykey-agent
gpa
2024-10-10 19:49:52 +03:00
];
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
};
2024-10-15 20:31:40 +03:00
hardware.onlykey.enable = true;
2024-10-17 02:08:55 +03:00
environment.variables = {
GNUPGHOME = "/home/vili/.gnupg/onlykey";
2024-10-17 02:08:55 +03:00
};
2024-10-15 21:21:26 +03:00
security.pam.u2f.enable = true;
2024-10-22 12:47:19 +03:00
programs.i3lock.u2fSupport = true;
2024-10-10 19:49:52 +03:00
}