Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
users/gkhaykin/awscli.nix
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ repos:
rev: v1.3.0
hooks:
- id: nixpkgs-fmt
language: system
40 changes: 32 additions & 8 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,38 @@
"presetConfig": {
"header": "CHANGELOG",
"types": [
{ "type": "feat", "section": "Features" },
{ "type": "BREAKING CHANGE", "section": "Breaking Changes" },
{ "type": "feat!", "section": "Breaking Changes" },
{ "type": "fix", "section": "Bug Fixes" },
{ "type": "perf", "section": "Performance Improvements" },
{ "type": "test", "section": "Tests" },
{ "type": "build", "section": "Build System" },
{ "type": "ci", "section": "CI/CD" }
{
"type": "feat",
"section": "Features"
},
{
"type": "BREAKING CHANGE",
"section": "Breaking Changes"
},
{
"type": "feat!",
"section": "Breaking Changes"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "test",
"section": "Tests"
},
{
"type": "build",
"section": "Build System"
},
{
"type": "ci",
"section": "CI/CD"
}
]
}
}
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pre-commit 4.1.0
just 1.46.0
74 changes: 0 additions & 74 deletions Makefile

This file was deleted.

66 changes: 66 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[private]
default:
@just --list --unsorted --list-heading $'Available commands:\n'

DS_NIX_INSTALLER_VERSION := "v0.32.2"

[group('nix')]
[doc('Install Nix with Determinate Systems Nix Installer')]
nix-install:
@echo "Installing Nix using Determinate Systems installer ({{ DS_NIX_INSTALLER_VERSION }})."
@if command -v nix >/dev/null 2>&1; then \
echo "Nix is already installed. Run 'nix --version' to check version."; \
else \
curl --proto '=https' --tlsv1.2 -sSf -L "https://install.determinate.systems/nix/tag/{{ DS_NIX_INSTALLER_VERSION }}" | sh -s -- install && \
echo "Nix installation complete. Please restart your shell."; \
fi

[group('nix')]
[doc('Upgrade Nix')]
nix-upgrade:
@echo "Upgrading Nix."
@sudo -i nix upgrade-nix

[group('nix')]
[doc('Uninstall Nix')]
nix-uninstall:
@echo "Uninstalling Nix."
@/nix/nix-installer uninstall

[group('nix')]
[doc('Apply nix-darwin configuration for a given host')]
nix-apply host:
@echo "Applying nix-darwin configuration for {{ host }}."
@nix run nix-darwin -- switch --flake .#{{ host }} --show-trace

[group('nix')]
[doc('Update the flake.lock file')]
nix-update-flake:
@nix flake update

[group('nix')]
[doc('Collect Nix garbage (remove unused packages)')]
nix-gc:
@nix-collect-garbage

[group('misc')]
[doc('Initialize pre-commit hooks')]
pre-commit-init:
@echo "Installing pre-commit hooks."
@pre-commit install
@pre-commit install --hook-type commit-msg

[group('misc')]
[doc('Update pre-commit hooks')]
pre-commit-update:
@pre-commit autoupdate

[group('misc')]
[doc('Run pre-commit hooks on all files')]
pre-commit-run:
@pre-commit run --all-files

[group('misc')]
[doc('Install asdf plugins')]
asdf-install:
@./users/shared/scripts/asdf.sh
42 changes: 0 additions & 42 deletions users/gkhaykin/awscli.nix

This file was deleted.

5 changes: 3 additions & 2 deletions users/shared/scripts/asdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins=(
"python 3.12.9" # programming language
"uv 0.8.13" # python package manager
"rust 1.84.1" # programming language
"golang 1.23.5" # programming language
"golang 1.25.5" # programming language
"terraform 1.12.1" # IaC provisioning
"opentofu 1.9.0" # fork of terraform since license changed
"tflint 0.55.1" # terraform linter
Expand Down Expand Up @@ -41,7 +41,8 @@ plugins=(
"pre-commit 4.3.0" # git commit hook manager
"direnv 2.35.0" # environment manager
"1password-cli 2.30.3" # password manager
# "make 4.4.1"
"buf 1.61.0" # protobuf tooling
"just 1.46.0" # building tool, alternative to make
)
asdf plugin add supabase-cli https://github.com/gavinying/asdf-supabase-cli.git 2>/dev/null || true
for plugin in "${plugins[@]}"; do
Expand Down
Loading