Skip to content

Commit

Permalink
refactor: secrets update path
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed May 24, 2024
1 parent 6bde842 commit 53e284a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions hosts/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let
home-manager.useUserPackages = true;
home-manager.users.${user.username} = {
imports = attrValues self.homeManagerModules ++ [
inputs.sops.homeManagerModule
inputs.sops.homeManagerModules.sops
({ config, ... }: {
home.sessionVariables.OPENAI_API_KEY = "$(cat ${config.sops.secrets.openai_api_key.path})";
})
Expand All @@ -44,7 +44,7 @@ let
sops.gnupg.home = "~/.gnupg";
sops.gnupg.sshKeyPaths = [ ];
sops.defaultSopsFile = ../secrets/secret.yaml;
sops.secrets.openai_api_key.path = "~/.config/openai/OPENAI_API_KEY";
sops.secrets.openai_api_key.path = "~/.config/sops-nix/secrets/openai_api_key";
# git diff integrations
programs.git.extraConfig.diff.sopsdiffer.textconv = "sops -d";
};
Expand Down
2 changes: 1 addition & 1 deletion nvim.nix/config/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
})
-- make sync formatter when write and quit
vim.cmd [[ cabbrev wq execute "Format sync" <bar> wq ]]
-- vim.cmd [[ cabbrev wq execute "Format sync" <bar> wq ]]
-- ft:rust didn't respect my tabstop=2 - I love you but not me
vim.g.rust_recommended_style = false
Expand Down

0 comments on commit 53e284a

Please sign in to comment.