feat: setup nix flake

This commit is contained in:
eric
2026-03-18 00:05:38 +01:00
commit 2ca960a355
2 changed files with 37 additions and 0 deletions

22
flake.nix Normal file
View File

@@ -0,0 +1,22 @@
{
description = "NodeiWest dev environment module";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
flake = {
homeManagerModules.default = ./modules/home.nix;
};
};
}

15
modules/home.nix Normal file
View File

@@ -0,0 +1,15 @@
{ pkgs, lib, ... }:
{
# Company env vars — available in all shells
home.sessionVariables = {
BAO_ADDR = "https://secrets.api.nodeiwest.se";
SOME_REGISTRY = "git.dgren.dev";
# etc.
};
home.packages = with pkgs; [
# Tools every dev needs
openbao
# etc.
];
}