Skip to content

Commit

Permalink
Update flake inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian May committed May 8, 2024
1 parent 0b6a2c3 commit e67024e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"oneshot",
"refs",
"requestor",
"splitn",
"sqlpad",
"Swatinem",
"unconfigure",
Expand Down
35 changes: 26 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 16 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
rust-overlay.url = "github:oxalica/rust-overlay";
crane = {
Expand All @@ -19,6 +20,11 @@
inherit system;
overlays = [ (import rust-overlay) ];
};
pkgs_unstable = import nixpkgs-unstable {
inherit system;
# required for helm-secrets
config.allowUnfree = true;
};

osxlibs = pkgs.lib.lists.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.Security
Expand Down Expand Up @@ -70,7 +76,7 @@
helm = pkgs.wrapHelm pkgs.kubernetes-helm {
plugins = [
pkgs.kubernetes-helmPlugins.helm-diff
pkgs.kubernetes-helmPlugins.helm-secrets
pkgs_unstable.kubernetes-helmPlugins.helm-secrets
];
extraMakeWrapperArgs =
"--set HELM_SECRETS_SOPS_PATH ${sops}/bin/sops --set HELM_SECRETS_VALS_PATH ${vals}/bin/vals";
Expand All @@ -87,9 +93,15 @@
rustSrcPlatform =
rustPlatform.override { extensions = [ "rust-src" ]; };
workspaceShell = pkgs.mkShell {
buildInputs =
[ pkgs.rust-analyzer rustSrcPlatform helm awscli sops vals gnupg ]
++ osxlibs;
buildInputs = [
pkgs_unstable.rust-analyzer
rustSrcPlatform
helm
awscli
sops
vals
gnupg
] ++ osxlibs;
};

in rec {
Expand Down

0 comments on commit e67024e

Please sign in to comment.