Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 1 | { config, ... }: |
| 2 | { |
| 3 | users.users.coded.hashedPasswordFile = |
| 4 | config.sops.secrets."systems/x86_64-linux/ocicat/users/passwords.sops.coded.json:coded".path; |
| 5 | |
| 6 | users.users.minion.hashedPasswordFile = |
| 7 | config.sops.secrets."systems/x86_64-linux/ocicat/users/passwords.sops.coded.json:minion".path; |
| 8 | |
| 9 | sops.secrets."systems/x86_64-linux/ocicat/users/passwords.sops.coded.json:coded" = { |
| 10 | mode = "0400"; |
| 11 | owner = config.users.users.root.name; |
| 12 | group = config.users.users.root.group; |
| 13 | sopsFile = ./passwords.sops.coded.json; |
| 14 | format = "json"; |
| 15 | key = "coded"; |
| 16 | neededForUsers = true; |
| 17 | }; |
| 18 | |
| 19 | sops.secrets."systems/x86_64-linux/ocicat/users/passwords.sops.coded.json:minion" = { |
| 20 | mode = "0400"; |
| 21 | owner = config.users.users.root.name; |
| 22 | group = config.users.users.root.group; |
| 23 | sopsFile = ./passwords.sops.coded.json; |
| 24 | format = "json"; |
| 25 | key = "minion"; |
| 26 | neededForUsers = true; |
| 27 | }; |
| 28 | } |