mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added programmatic dynamic generation of user defined keys
This commit is contained in:
parent
18a94b74fb
commit
6ccfd709d0
10 changed files with 41 additions and 20 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
with lib;
|
||||
let
|
||||
gpg = config.modules.user.security.gpg;
|
||||
modules = config.modules.user;
|
||||
|
||||
userConfigs = rec {
|
||||
name = "bryan";
|
||||
|
|
@ -14,24 +14,16 @@ userConfigs = rec {
|
|||
|
||||
groups = [ "wheel" "networkmanager" "home-manager" "input" ];
|
||||
|
||||
gitConfig = {
|
||||
keys = import ./keys;
|
||||
|
||||
gitConfig = optionalAttrs modules.git.enable {
|
||||
userName = "Bryan Ramos";
|
||||
userEmail = email;
|
||||
signing = optionalAttrs gpg.enable {
|
||||
signing = optionalAttrs modules.security.gpg.enable {
|
||||
key = "F1F3466458452B2DF351F1E864D12BA95ACE1F2D";
|
||||
signByDefault = true;
|
||||
};
|
||||
};
|
||||
|
||||
pgpKey = {
|
||||
text = import ./keys/pgpKey.nix;
|
||||
trust = 5;
|
||||
};
|
||||
|
||||
sshKeys = {
|
||||
key1 = import ./keys/sshKey1.nix;
|
||||
key2 = import ./keys/sshKey2.nix;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue