mirror of
https://github.com/Unkn0wnCat/dotfiles.git
synced 2025-05-11 23:16:37 +02:00
Reorganize project layout and add wg port option
This commit is contained in:
parent
f5a2346ee7
commit
ee9830b87f
9 changed files with 165 additions and 153 deletions
|
@ -1,21 +0,0 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.kevin.yubikey;
|
||||
in {
|
||||
options.kevin.yubikey = {
|
||||
enable = mkEnableOption "yubikey setup";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable (mkMerge [
|
||||
({
|
||||
security.pam.yubico = {
|
||||
enable = true;
|
||||
debug = false;
|
||||
mode = "challenge-response";
|
||||
};
|
||||
|
||||
services.udev.packages = [ pkgs.yubikey-personalization ];
|
||||
})
|
||||
]);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue