Add flake.nix

This commit is contained in:
ryan 2025-08-02 19:14:04 -07:00
parent d1e497cdc2
commit e217c7b180
2 changed files with 28 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

27
flake.nix Normal file
View File

@ -0,0 +1,27 @@
{
description = "Elixir system monitor daemon";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
elixir
erlang
];
shellHook = ''
echo "Elixir development environment loaded"
elixir --version
'';
};
});
}