blob: cf0e733f423903bb8242840a814f678670c479ff [file] [log] [blame]
Samuel Shuertd58fbaf2024-06-20 21:08:48 -04001{ 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}