chore(tooling): add nix flake and reconfigure some stuff for neovim

This commit is contained in:
cswimr 2025-02-08 13:42:35 -06:00
parent c6f6f0d5c1
commit b2bc02108d
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
5 changed files with 97 additions and 13 deletions

41
flake.nix Normal file
View file

@ -0,0 +1,41 @@
{
description = "A Nix-flake-based C# development environment";
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
outputs =
{ self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forEachSupportedSystem =
f:
nixpkgs.lib.genAttrs supportedSystems (
system:
f {
pkgs = import nixpkgs { inherit system; };
}
);
in
{
devShells = forEachSupportedSystem (
{ pkgs }:
{
default = pkgs.mkShell {
packages = with pkgs; [
dotnet-sdk_9
omnisharp-roslyn
mono
];
shellHook = ''
export ASPNETCORE_ENVIRONMENT=Development
'';
};
}
);
};
}