File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77} : {
88 imports = [
99 ./programs
10- ./services.nix
1110 ] ;
1211
1312 age . identityPaths = [
Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ { pkgs , ...} : {
2+ rc . gpg . enable = true ;
3+ }
Original file line number Diff line number Diff line change 44 ./programs
55 ./development.nix
66 ./editor.nix
7+ ./gpg.nix
78 ./scm.nix
89 ./ssh.nix
910 ./utilities.nix
Original file line number Diff line number Diff line change 1+ {
2+ config ,
3+ lib ,
4+ pkgs ,
5+ ...
6+ } : let
7+ inherit ( lib ) mkIf ;
8+
9+ cfg = config . rc . gpg ;
10+ in {
11+ options = {
12+ rc . gpg = {
13+ enable = lib . mkEnableOption "GPG-based identity configuration" ;
14+ } ;
15+ } ;
16+
17+ config = mkIf cfg . enable {
18+ programs . gpg = {
19+ enable = true ;
20+ settings = {
21+ default-key = "413D1A0152BCB08D2E3DDACAF88C08579051AB48" ;
22+ } ;
23+ } ;
24+
25+ programs . git . signing = {
26+ key = "F88C08579051AB48" ;
27+ signByDefault = true ;
28+ } ;
29+
30+ services . gpg-agent = {
31+ enable = true ;
32+ enableScDaemon = true ;
33+ enableSshSupport = true ;
34+ enableZshIntegration = true ;
35+ defaultCacheTtlSsh = 600 ;
36+ maxCacheTtlSsh = 3600 ;
37+ noAllowExternalCache = true ;
38+ pinentry . package = with pkgs ;
39+ if stdenv . isDarwin
40+ then pinentry_mac
41+ else pinentry-tty ;
42+ } ;
43+ } ;
44+ }
Original file line number Diff line number Diff line change 5151
5252 programs . git = {
5353 enable = true ;
54- signing = {
55- key = "F88C08579051AB48" ;
56- signByDefault = true ;
57- } ;
5854 settings = {
5955 user = {
6056 name = "✿ corey" ;
7268 enable = true ;
7369 enableGitIntegration = true ;
7470 } ;
75-
76- programs . gpg = {
77- enable = true ;
78- settings = {
79- default-key = "413D1A0152BCB08D2E3DDACAF88C08579051AB48" ;
80- } ;
81- } ;
8271 } )
8372
8473 ( mkIf gitCfg . enableHubWrapper {
You can’t perform that action at this time.
0 commit comments