personal-website/flake.nix

30 lines
514 B
Nix
Raw Normal View History

2025-01-28 18:43:37 +03:00
{
description = "A portable go dev flake!";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = { nixpkgs, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system} = {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
delve
go
gopls
templ
];
hardeningDisable = [ "fortify" ];
shellHook = "echo Welcome to go-backend environment";
};
};
};
}