Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { pkgs |
| 2 | , home |
| 3 | , config |
| 4 | , username |
| 5 | , ... |
Skyler Grey | cea6251 | 2022-09-01 23:51:07 +0100 | [diff] [blame] | 6 | }: { |
| 7 | home = { |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 8 | home.packages = [ pkgs.keepassxc ]; |
Skyler Grey | cea6251 | 2022-09-01 23:51:07 +0100 | [diff] [blame] | 9 | }; |
| 10 | config = { |
| 11 | environment.persistence."/nix/persist".users.${username}.directories = [ |
| 12 | ".config/keepassxc" |
| 13 | ]; |
| 14 | sops.secrets.keepassPassword = { |
Skyler Grey | 303dce4 | 2023-02-13 06:29:30 +0000 | [diff] [blame] | 15 | mode = "0000"; |
| 16 | owner = config.users.users.nobody.name; |
| 17 | group = config.users.users.nobody.group; |
| 18 | }; |
| 19 | security.wrappers."run_keepass" = { |
| 20 | source = "${pkgs.run-keepass}/bin/run_keepass"; |
| 21 | setuid = true; |
| 22 | owner = config.users.users.root.name; |
Skyler Grey | cea6251 | 2022-09-01 23:51:07 +0100 | [diff] [blame] | 23 | group = config.users.users.nobody.group; |
| 24 | }; |
| 25 | }; |
| 26 | } |