mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
changes
This commit is contained in:
parent
ff5a0fe6a3
commit
929dbf8c43
16 changed files with 74 additions and 61 deletions
|
|
@ -6,6 +6,7 @@ let
|
|||
|
||||
in
|
||||
{ options.modules.user.security = { enable = mkEnableOption "user.security"; };
|
||||
imports = [ ./modules ];
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
pass
|
||||
|
|
|
|||
5
src/user/modules/security/modules/default.nix
Normal file
5
src/user/modules/security/modules/default.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
imports = [
|
||||
./gpg
|
||||
];
|
||||
}
|
||||
23
src/user/modules/security/modules/gpg/default.nix
Normal file
23
src/user/modules/security/modules/gpg/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.user.security.gpg;
|
||||
|
||||
in
|
||||
{ options.modules.user.security.gpg = { enable = mkEnableOption "user.security.gpg"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
publicKeys = [ config.user.pgpKey ];
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
enable = true;
|
||||
enableSshSupport = true;
|
||||
enableBashIntegration = true;
|
||||
enableScDaemon = true;
|
||||
pinentryFlavor = "tty";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue