Skip to content

Commit 8b52b21

Browse files
Merge pull request #29 from nais/secrets-for-nais-api
Secrets for nais api
2 parents f9700a5 + b7579f5 commit 8b52b21

27 files changed

+3996
-150
lines changed

.configs/flake.lock

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.configs/flake.nix

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
description = "Example JavaScript development environment for Zero to Nix";
3+
4+
# Flake inputs
5+
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; };
6+
7+
# Flake outputs
8+
outputs = { self, nixpkgs }:
9+
let
10+
# Systems supported
11+
12+
allSystems = [
13+
"x86_64-linux" # 64-bit Intel/AMD Linux
14+
"aarch64-linux" # 64-bit ARM Linux
15+
"x86_64-darwin" # 64-bit Intel macOS
16+
"aarch64-darwin" # 64-bit ARM macOS
17+
];
18+
19+
# Helper to provide system-specific attributes
20+
forAllSystems = f:
21+
nixpkgs.lib.genAttrs allSystems
22+
(system: f { pkgs = import nixpkgs { inherit system; }; });
23+
in {
24+
# Development environment output
25+
devShells = forAllSystems ({ pkgs }: {
26+
default = pkgs.mkShell {
27+
# The Nix packages provided in the environment
28+
packages = with pkgs; [ bun nodejs_20];
29+
30+
};
31+
});
32+
};
33+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ node_modules
55
/package
66
.env
77
.env.*
8+
.envrc
89
!.env.example
910
vite.config.js.timestamp-*
1011
vite.config.ts.timestamp-*
1112

1213
$houdini
1314
/.idea/
15+
/.direnv/

0 commit comments

Comments
 (0)