Move onlykey conf

This commit is contained in:
Vili Sinervä 2025-02-20 20:53:22 +02:00
parent 822cafec21
commit 03fe01f09d
No known key found for this signature in database
GPG key ID: DF8FEAF54EFAC996
3 changed files with 2 additions and 2 deletions

View file

@ -0,0 +1,37 @@
{ config, pkgs, ... }:
{
assertions = [
{
assertion = config.users.users ? "vili";
message = "User 'vili' needed for onlykey!";
}
];
environment.systemPackages = with pkgs; [
(onlykey.override (prev: {
node_webkit = prev.node_webkit.overrideAttrs {
version = "0.71.1";
src = fetchurl {
url = "https://dl.nwjs.io/v0.71.1/nwjs-v0.71.1-linux-x64.tar.gz";
hash = "sha256-bnObpwfJ6SNJdOvzWTnh515JMcadH1+fxx5W9e4gl/4=";
};
};
}))
onlykey-cli
onlykey-agent
gpa
];
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
};
hardware.onlykey.enable = true;
environment.variables = {
GNUPGHOME = "/home/vili/.gnupg/onlykey";
};
security.pam.u2f.enable = true;
programs.i3lock.u2fSupport = true;
}