blob: 24e854a930526e36fe49e876b33c4e546ec55720 [file] [log] [blame]
Samuel Shuert659b5642024-02-23 20:47:43 +00001{ config, ... }:
2{
3 users.users.coded.hashedPasswordFile =
4 config.sops.secrets."systems/x86_64-linux/shorthair/users/passwords.sops.coded.json:coded".path;
Samuel Shuert29febe32024-02-23 18:21:01 +00005
Samuel Shuerta1b22b82024-02-28 17:43:13 -05006 users.users.minion.hashedPasswordFile =
7 config.sops.secrets."systems/x86_64-linux/shorthair/users/passwords.sops.coded.json:minion".path;
8
Samuel Shuert29febe32024-02-23 18:21:01 +00009 sops.secrets."systems/x86_64-linux/shorthair/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 };
Samuel Shuerta1b22b82024-02-28 17:43:13 -050018
19 sops.secrets."systems/x86_64-linux/shorthair/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 };
Samuel Shuert659b5642024-02-23 20:47:43 +000028}