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