add secrets as submodule
This commit is contained in:
parent
3886cd8724
commit
480c28581e
3 changed files with 8 additions and 1 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -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
|
||||||
|
|
|
@ -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
1
secrets
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6c55eef247c404c243b51a4230f2d29fc8d55862
|
Loading…
Reference in a new issue