nixos-conf/hardware-specific/onlykey.nix

28 lines
645 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
];
security.pam.u2f.enable = true;
2024-10-15 20:31:40 +03:00
hardware.onlykey.enable = true;
programs.i3lock.u2fSupport = true;
2024-10-10 19:49:52 +03:00
}