add secrets as submodule

This commit is contained in:
CherryKitten 2024-09-17 12:15:44 +02:00
parent 3886cd8724
commit 480c28581e
Signed by: sammy
GPG key ID: 98D8F75FB0658276
3 changed files with 8 additions and 1 deletions

3
.gitmodules vendored
View file

@ -2,3 +2,6 @@
path = misc/nixos-infect path = misc/nixos-infect
url = ../nixos-infect url = ../nixos-infect
branch = sammy branch = sammy
[submodule "secrets"]
path = secrets
url = git@git.cherrykitten.dev:sammy/secret-store

View file

@ -47,11 +47,14 @@
{ {
default = pkgs.mkShell { default = pkgs.mkShell {
nativeBuildInputs = packages; nativeBuildInputs = packages;
shellHook = "exec $SHELL"; shellHook = ''
export PASSWORD_STORE_DIR=./secrets
exec $SHELL'';
}; };
hcloud = pkgs.mkShell { hcloud = pkgs.mkShell {
nativeBuildInputs = packages ++ [ pkgs.hcloud ]; nativeBuildInputs = packages ++ [ pkgs.hcloud ];
shellHook = '' shellHook = ''
export PASSWORD_STORE_DIR=./secrets
export HCLOUD_TOKEN=$(pass services/hcloud/api_token) export HCLOUD_TOKEN=$(pass services/hcloud/api_token)
exec $SHELL exec $SHELL
''; '';

1
secrets Submodule

@ -0,0 +1 @@
Subproject commit 6c55eef247c404c243b51a4230f2d29fc8d55862