Move onlykey conf
This commit is contained in:
parent
822cafec21
commit
03fe01f09d
3 changed files with 2 additions and 2 deletions
37
hardware-specific/onlykey.nix
Normal file
37
hardware-specific/onlykey.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue