Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
| 2 | , username |
| 3 | , ... |
Skyler Grey | 0f9f493 | 2022-10-31 00:07:54 +0000 | [diff] [blame] | 4 | }: { |
Skyler Grey | afb10f4 | 2022-08-26 06:55:48 +0100 | [diff] [blame] | 5 | home = { |
| 6 | programs.gpg.enable = true; |
| 7 | services.gpg-agent = { |
| 8 | enable = true; |
Skyler Grey | 42594a0 | 2023-01-26 00:49:19 +0000 | [diff] [blame] | 9 | extraConfig = '' |
| 10 | pinentry-program ${pkgs.pinentry-rofi}/bin/pinentry-rofi |
| 11 | ''; |
| 12 | /* pinentryFlavor = "curses"; */ |
Skyler Grey | afb10f4 | 2022-08-26 06:55:48 +0100 | [diff] [blame] | 13 | }; |
| 14 | }; |
| 15 | |
| 16 | config.environment.persistence."/nix/persist".users.${username}.directories = [ |
| 17 | { |
| 18 | directory = ".gnupg"; |
| 19 | mode = "0700"; |
| 20 | } |
| 21 | ]; |
Skyler Grey | f48d308 | 2022-10-30 23:01:24 +0000 | [diff] [blame] | 22 | |
| 23 | home.home.packages = [ |
Skyler Grey | 0f9f493 | 2022-10-31 00:07:54 +0000 | [diff] [blame] | 24 | pkgs.pinentry-rofi |
Skyler Grey | f48d308 | 2022-10-30 23:01:24 +0000 | [diff] [blame] | 25 | ]; |
Skyler Grey | afb10f4 | 2022-08-26 06:55:48 +0100 | [diff] [blame] | 26 | } |