Skip to content

Commit

Permalink
Updates for .envrc and flake.nix files configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsmaxft committed Feb 9, 2024
1 parent f67222c commit 69cb974
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export API_KEY="$(toml2json ~/.config/gemini-cli.toml |jq -r '.token')"

use flake
export API_KEY="$(toml2json ~/.config/gemini-cli.toml |jq -r '.token')"
8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
outputs = { self, nixpkgs, utils, naersk }:
let
systemBuildInputs = system: pkgs: {
${system} = [ pkgs.iconv pkgs.openssl] ++
(if pkgs.lib.strings.hasInfix "$system" "darwin"
then [ pkgs.darwin.apple_sdk.frameworks.Security pkgs.darwin.apple_sdk.frameworks.SystemConfiguration ]
else [ ]);
${system} = with builtins; if ( match ".*darwin" "${system}" != null)
then [ pkgs.iconv pkgs.openssl pkgs.darwin.apple_sdk.frameworks.Security pkgs.darwin.apple_sdk.frameworks.SystemConfiguration ]
else [ pkgs.iconv pkgs.openssl]
;
};
in
utils.lib.eachDefaultSystem( system:
Expand Down

0 comments on commit 69cb974

Please sign in to comment.