Skip to content

Commit

Permalink
feat: use atomiutils, infrautils & infralint
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Jan 29, 2025
1 parent 1a33dcf commit 021d869
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 150 deletions.
16 changes: 3 additions & 13 deletions templates/bun/nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
bash
jq
yq
curl
atomiutils
];

dev = [
Expand All @@ -21,9 +14,7 @@ with packages;
<%= if (infra) { %>
*/
infra = [
kubectl
k3d
helm
infrautils
];
/*
<%= } %>
Expand All @@ -45,8 +36,7 @@ with packages;
/*
<%= if (infra) { %>
*/
hadolint
helm-docs
infralint
/*
<%= } %>
*/
Expand Down
27 changes: 3 additions & 24 deletions templates/bun/nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,12 @@ let
with pkgs-2411;
{

yq = yq-go;

/*
<%= if (infra) { %>
*/
helm = kubernetes-helm;
/*
<%= } %>
*/

inherit

# standard
coreutils
findutils
gnugrep
gnused
jq
bash
atomiutils

git
curl
infisical

treefmt
Expand All @@ -52,13 +36,8 @@ let
<%= if (infra) { %>
*/
#infra
kubectl
k3d

docker
hadolint

helm-docs
infrautils
infralint
/*
<%= } %>
*/
Expand Down
6 changes: 3 additions & 3 deletions templates/bun/nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ pre-commit-lib.run {
a-enforce-exec = {
enable = true;
name = "Enforce Shell Script executable";
entry = "${packages.coreutils}/bin/chmod +x";
entry = "${packages.atomiutils}/bin/chmod +x";
files = ".*sh$";
language = "system";
pass_filenames = true;
Expand All @@ -88,7 +88,7 @@ pre-commit-lib.run {
a-hadolint = {
enable = true;
name = "Docker Linter";
entry = "${packages.hadolint}/bin/hadolint";
entry = "${packages.infralint}/bin/hadolint";
files = ".*Dockerfile$";
language = "system";
pass_filenames = true;
Expand All @@ -97,7 +97,7 @@ pre-commit-lib.run {
a-helm-docs = {
enable = true;
name = "Helm Docs";
entry = "${packages.helm-docs}/bin/helm-docs";
entry = "${packages.infralint}/bin/helm-docs";
files = ".*";
language = "system";
pass_filenames = false;
Expand Down
7 changes: 1 addition & 6 deletions templates/cyanprint-bun/nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
jq
yq
atomiutils
];

dev = [
Expand Down
8 changes: 1 addition & 7 deletions templates/cyanprint-bun/nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ let
nix-2411 = (
with pkgs-2411;
{
yq = yq-go;

inherit
coreutils
findutils
gnugrep
gnused
jq

atomiutils

git

Expand Down
2 changes: 1 addition & 1 deletion templates/cyanprint-bun/nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pre-commit-lib.run {
a-enforce-exec = {
enable = true;
name = "Enforce Shell Script executable";
entry = "${packages.coreutils}/bin/chmod +x";
entry = "${packages.atomiutils}/bin/chmod +x";
files = ".*sh$";
language = "system";
pass_filenames = true;
Expand Down
16 changes: 3 additions & 13 deletions templates/dotnet/nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
bash
jq
yq
curl
atomiutils
];

dev = [
Expand All @@ -21,9 +14,7 @@ with packages;
<%= if (infra) { %>
*/
infra = [
kubectl
k3d
helm
infrautils
];
/*
<%= } %>
Expand All @@ -44,8 +35,7 @@ with packages;
/*
<%= if (infra) { %>
*/
hadolint
helm-docs
infralint
/*
<%= } %>
*/
Expand Down
28 changes: 3 additions & 25 deletions templates/dotnet/nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,13 @@ let
nix-2411 = (
with pkgs-2411;
{

yq = yq-go;
dotnet = dotnet-sdk_9;

/*
<%= if (infra) { %>
*/
helm = kubernetes-helm;
/*
<%= } %>
*/

inherit

# standard
coreutils
findutils
gnugrep
gnused
jq
bash
atomiutils

git
curl
infisical

treefmt
Expand All @@ -50,13 +33,8 @@ let
<%= if (infra) { %>
*/
#infra
kubectl
k3d

docker
hadolint

helm-docs
infrautils
infralint
/*
<%= } %>
*/
Expand Down
6 changes: 3 additions & 3 deletions templates/dotnet/nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pre-commit-lib.run {
a-enforce-exec = {
enable = true;
name = "Enforce Shell Script executable";
entry = "${packages.coreutils}/bin/chmod +x";
entry = "${packages.atomiutils}/bin/chmod +x";
files = ".*sh$";
language = "system";
pass_filenames = true;
Expand All @@ -89,7 +89,7 @@ pre-commit-lib.run {
a-hadolint = {
enable = true;
name = "Docker Linter";
entry = "${packages.hadolint}/bin/hadolint";
entry = "${packages.infralint}/bin/hadolint";
files = ".*Dockerfile$";
language = "system";
pass_filenames = true;
Expand All @@ -98,7 +98,7 @@ pre-commit-lib.run {
a-helm-docs = {
enable = true;
name = "Helm Docs";
entry = "${packages.helm-docs}/bin/helm-docs";
entry = "${packages.infralint}/bin/helm-docs";
files = ".*";
language = "system";
pass_filenames = false;
Expand Down
16 changes: 3 additions & 13 deletions templates/go/nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
bash
jq
yq
curl
atomiutils
];

dev = [
Expand All @@ -22,9 +15,7 @@ with packages;
<%= if (infra) { %>
*/
infra = [
kubectl
k3d
helm
infrautils
];
/*
<%= } %>
Expand All @@ -49,8 +40,7 @@ with packages;
/*
<%= if (infra) { %>
*/
hadolint
helm-docs
infralint
/*
<%= } %>
*/
Expand Down
28 changes: 3 additions & 25 deletions templates/go/nix/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,12 @@ let
nix-2411 = (
with pkgs-2411;
{

yq = yq-go;

/*
<%= if (infra) { %>
*/
helm = kubernetes-helm;
/*
<%= } %>
*/

inherit

# standard
coreutils
findutils
gnugrep
gnused
jq
bash
atomiutils

git
curl
infisical

treefmt
Expand All @@ -55,13 +38,8 @@ let
<%= if (infra) { %>
*/
#infra
kubectl
k3d

docker
hadolint

helm-docs
infrautils
infralint
/*
<%= } %>
*/
Expand Down
6 changes: 3 additions & 3 deletions templates/go/nix/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pre-commit-lib.run {
a-enforce-exec = {
enable = true;
name = "Enforce Shell Script executable";
entry = "${packages.coreutils}/bin/chmod +x";
entry = "${packages.atomiutils}/bin/chmod +x";
files = ".*sh$";
language = "system";
pass_filenames = true;
Expand All @@ -89,7 +89,7 @@ pre-commit-lib.run {
a-hadolint = {
enable = true;
name = "Docker Linter";
entry = "${packages.hadolint}/bin/hadolint";
entry = "${packages.infralint}/bin/hadolint";
files = ".*Dockerfile$";
language = "system";
pass_filenames = true;
Expand All @@ -98,7 +98,7 @@ pre-commit-lib.run {
a-helm-docs = {
enable = true;
name = "Helm Docs";
entry = "${packages.helm-docs}/bin/helm-docs";
entry = "${packages.infralint}/bin/helm-docs";
files = ".*";
language = "system";
pass_filenames = false;
Expand Down
8 changes: 1 addition & 7 deletions templates/normal/standard/nix/env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
with packages;
{
system = [
coreutils
findutils
gnugrep
gnused
bash
jq
yq
atomiutils
];

dev = [
Expand Down
Loading

0 comments on commit 021d869

Please sign in to comment.