nixos/src/user/modules/security/default.nix
2026-03-11 06:20:39 -04:00

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
];
};
}