This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0b706fc
commit 0369d36
Showing
5 changed files
with
101 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Git settings | ||
|
||
{ config, lib, pkgs, ... }: | ||
|
||
let | ||
|
@@ -8,6 +10,8 @@ in { | |
enable = true; | ||
userName = "Luc Perkins"; | ||
userEmail = "[email protected]"; | ||
|
||
# Replaces ~/.gitignore | ||
ignores = [ | ||
".DS_Store" | ||
".idea/" | ||
|
@@ -16,6 +20,8 @@ in { | |
"dumb.rdb" | ||
".elixir_ls/" | ||
]; | ||
|
||
# Replaces aliases in ~/.gitconfig | ||
aliases = { | ||
bd = "branch -D"; | ||
br = "branch"; | ||
|
@@ -34,6 +40,8 @@ in { | |
whoops = "reset --hard"; | ||
wipe = "commit -s"; | ||
}; | ||
|
||
# Global Git config | ||
extraConfig = { | ||
core = { | ||
editor = "vim"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,95 @@ | ||
{ config, lib, pkgs, ... }: | ||
|
||
let | ||
# Import other Nix files | ||
baseImports = [ | ||
./git.nix | ||
./neovim.nix | ||
./shell.nix | ||
./tmux.nix | ||
]; | ||
|
||
# Handly shell command to view the dependency tree of Nix packages | ||
depends = pkgs.writeScriptBin "depends" '' | ||
dep=$1 | ||
nix-store --query --requisites $(which $dep) | ||
''; | ||
|
||
|
||
in { | ||
# Allow non-free (as in beer) packages | ||
nixpkgs.config.allowUnfree = true; | ||
|
||
# Enable Home Manager | ||
programs.home-manager.enable = true; | ||
|
||
home.username = "lucasperkins"; | ||
home.homeDirectory = "/Users/lucasperkins"; | ||
home.stateVersion = "20.09"; | ||
|
||
# Enable the Lorri daemon | ||
programs.lorri.enable = true; | ||
|
||
# Pull in other config files | ||
imports = baseImports; | ||
|
||
# Miscellaneous packages | ||
home.packages = with pkgs; [ | ||
adoptopenjdk-bin | ||
bash | ||
bat | ||
bazel | ||
cargo-edit | ||
cargo-graph | ||
crystal | ||
curl | ||
depends | ||
dhall | ||
direnv | ||
doctl | ||
elixir | ||
erlang | ||
exa | ||
fd | ||
fzf | ||
gitAndTools.delta | ||
gitAndTools.gh | ||
go | ||
graphviz | ||
htop | ||
httpie | ||
hugo | ||
jq | ||
just | ||
kubectl | ||
kubectx | ||
linkerd | ||
lorri | ||
mdcat | ||
minikube | ||
niv | ||
nodejs | ||
nushell | ||
packer | ||
python3 | ||
python38Packages.pip | ||
ripgrep | ||
ruby | ||
rustup | ||
sd | ||
shards | ||
skaffold | ||
skim | ||
spotify-tui | ||
starship | ||
tealdeer | ||
terraform | ||
tilt | ||
tokei | ||
tree | ||
watchexec | ||
wrangler | ||
xsv | ||
yarn | ||
youtube-dl | ||
adoptopenjdk-bin # Java | ||
bash # /bin/bash | ||
bat # cat replacement written in Rust | ||
bazel # Polyglot build tool from Google | ||
cargo-edit # Easy Rust dependency management | ||
cargo-graph # Rust dependency graphs | ||
crystal # Like Ruby but faster and with types | ||
curl # An old classic | ||
depends # Defined above | ||
dhall # Exotic, Nix-like configuration language | ||
direnv # Per-directory environment variables | ||
doctl # DigitalOcean CLI tool | ||
elixir # OTP with cool syntax | ||
erlang # OTP with weird syntax | ||
exa # ls replacement written in Rust | ||
fd # find replacement written in Rust | ||
fzf # Fuzzy finder | ||
gitAndTools.delta # Print Git diffs | ||
gitAndTools.gh # Official GitHub CLI tool | ||
go # Pretty okay language | ||
graphviz # dot | ||
htop # Resource monitoring | ||
httpie # Like curl but more user friendly | ||
hugo # Best static site generator ever | ||
jq # JSON parsing for the CLI | ||
just # Intriguing new make replacement | ||
kubectl # Kubernetes CLI tool | ||
kubectx # kubectl context switching | ||
linkerd # My favorite service mesh | ||
lorri # nix-env for your projects | ||
mdcat # Markdown converter/reader for the CLI | ||
minikube # Local Kubernetes | ||
niv # Nix dependency management | ||
nodejs # node and npm | ||
nushell # Experimental shell | ||
packer # HashiCorp tool for building machine images | ||
python3 # Have you upgraded yet??? | ||
python38Packages.pip # pip installer | ||
ripgrep # grep replacement written in Rust | ||
ruby # An old classic | ||
rustup # Rust dev environment management | ||
sd # Fancy sed replacement | ||
shards # Package management tool for the Crystal language | ||
skaffold # Local Kubernetes dev tool | ||
skim # High-powered fuzzy finder written in Rust | ||
spotify-tui # Spotify interface for the CLI | ||
starship # Fancy shell that works with zsh | ||
tealdeer # tldr for various shell tools | ||
terraform # Declarative infrastructure management | ||
tilt # Fast-paced Kubernetes development | ||
tokei # Handy tool to see lines of code by language | ||
tree # Should be included in macOS but it's not | ||
watchexec # Fileystem watcher/executor useful for speedy development | ||
wget # File getter | ||
wrangler # CloudFlare Workers CLI tool | ||
xsv # CSV file parsing utility | ||
yarn # Node.js package manager | ||
youtube-dl # Download videos | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters