feat: setup nix flake
This commit is contained in:
22
flake.nix
Normal file
22
flake.nix
Normal 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
15
modules/home.nix
Normal 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.
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user