mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
thinkman: enable nitrokey
This commit is contained in:
parent
9514033f26
commit
dcb997cdf7
4 changed files with 33 additions and 0 deletions
20
modules/hardware/nitrokey/default.nix
Normal file
20
modules/hardware/nitrokey/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.hardware.nitrokey;
|
||||
in
|
||||
{
|
||||
options.my.hardware.nitrokey = {
|
||||
enable = lib.mkEnableOption "pipewire configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.udev.packages = [ pkgs.nitrokey-udev-rules ];
|
||||
programs = {
|
||||
ssh.startAgent = false;
|
||||
gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue