commit | e048af540660965674a3c2b3eab183fc0743c8d7 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Thu Jan 26 00:50:44 2023 +0000 |
committer | Skyler Grey <skyler3665@gmail.com> | Sun Feb 26 13:09:28 2023 +0000 |
tree | 795ff83fb7dcd5a281ecfc9a32909b7a7bd29695 | |
parent | fe985d5be95de84d8f29a6e6e238d2cd504c999a [diff] |
Add access tokens as a secret
diff --git a/modules/tokens.nix b/modules/tokens.nix new file mode 100644 index 0000000..c80a30d --- /dev/null +++ b/modules/tokens.nix
@@ -0,0 +1,14 @@ +{ config, ... }: { + config = { + nix.extraOptions = '' + !include ${config.sops.secrets.access-tokens.path} + ''; + + sops.secrets.access-tokens = { + mode = "0440"; + group = config.users.groups.keys.name; + sopsFile = ../secrets/access-tokens; + format = "binary"; + }; + }; +}