feat: new rewrite

This commit is contained in:
Guz
2025-03-31 16:45:51 -03:00
parent 3de0c5ec3a
commit 38c7bc64ed
56 changed files with 1674 additions and 15358 deletions

View File

@@ -1,14 +1,12 @@
{
description = "My development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
templ.url = "github:a-h/templ?ref=v0.3.819";
};
outputs = {
self,
nixpkgs,
self,
...
} @ inputs: let
}: let
systems = [
"x86_64-linux"
"aarch64-linux"
@@ -19,42 +17,31 @@
nixpkgs.lib.genAttrs systems (system: let
pkgs = import nixpkgs {inherit system;};
in
f system pkgs);
templ = system: inputs.templ.packages.${system}.templ;
f pkgs);
in {
packages = forAllSystems (system: pkgs: let
musl = pkgs.musl;
derivation =
pkgs.buildGoModule {
};
in {
default = derivation;
});
devShells = forAllSystems (system: pkgs: {
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
CGO_ENABLED = "0";
CGO_ENABLED = "1";
hardeningDisable = ["all"];
buildInputs = with pkgs; [
# Javascript tools
eslint_d
nodejs_22
nodePackages_latest.eslint
# Go tools
go
gofumpt
golangci-lint
golines
gofumpt
gotools
delve
(templ system)
gopls
# TailwindCSS
tailwindcss_4
# Sqlite tools
sqlite
lazysql
litecli
# S3
awscli
];
};
});