mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
23 lines
436 B
Nix
23 lines
436 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.user.security;
|
|
pass = pkgs.pass.withExtensions (exts: with exts; [
|
|
pass-audit
|
|
pass-otp
|
|
pass-update
|
|
pass-tomb
|
|
]);
|
|
|
|
in
|
|
{ options.modules.user.security = { enable = mkEnableOption "Enable security module"; };
|
|
config = mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
pass
|
|
wireguard-tools
|
|
ipscan
|
|
yubikey-manager
|
|
];
|
|
};
|
|
}
|