mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 05:02:10 +00:00
init
This commit is contained in:
commit
2bf50c8969
12 changed files with 784 additions and 0 deletions
59
modules/base.nix
Normal file
59
modules/base.nix
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}: {
|
||||
nix.enable = true;
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
trusted-users = [
|
||||
"@admin"
|
||||
username
|
||||
];
|
||||
};
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
interval = {
|
||||
Weekday = 7;
|
||||
Hour = 3;
|
||||
Minute = 0;
|
||||
};
|
||||
options = "--delete-older-than 14d";
|
||||
};
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
programs.zsh.enable = true;
|
||||
environment.shells = [pkgs.zsh];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
bat
|
||||
curl
|
||||
fd
|
||||
fzf
|
||||
git
|
||||
gnupg
|
||||
go
|
||||
jq
|
||||
just
|
||||
neovim
|
||||
nodejs_22
|
||||
python3
|
||||
ripgrep
|
||||
rustup
|
||||
tree
|
||||
uv
|
||||
wget
|
||||
zoxide
|
||||
];
|
||||
|
||||
environment.variables = {
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
}
|
||||
135
modules/homebrew.nix
Normal file
135
modules/homebrew.nix
Normal file
|
|
@ -0,0 +1,135 @@
|
|||
{...}: {
|
||||
homebrew = {
|
||||
enable = true;
|
||||
|
||||
onActivation = {
|
||||
autoUpdate = false;
|
||||
upgrade = false;
|
||||
cleanup = "none";
|
||||
};
|
||||
|
||||
taps = [
|
||||
"daytonaio/tap"
|
||||
"getcompanion-ai/tap"
|
||||
"hashicorp/tap"
|
||||
"homebrew/services"
|
||||
"humanlayer/humanlayer"
|
||||
"jnsahaj/lumen"
|
||||
"nicosuave/tap"
|
||||
"nikitabobko/tap"
|
||||
"opencode-ai/tap"
|
||||
"pantsbuild/tap"
|
||||
"pipedreamhq/pd-cli"
|
||||
"steipete/tap"
|
||||
"stripe/stripe-cli"
|
||||
"supabase/tap"
|
||||
"tallesborges/zdx"
|
||||
"withgraphite/tap"
|
||||
];
|
||||
|
||||
brews = [
|
||||
"apache-arrow"
|
||||
"binwalk"
|
||||
"cloc"
|
||||
"cloudflared"
|
||||
"cmake"
|
||||
"coreutils"
|
||||
"criterion"
|
||||
"daytonaio/tap/daytona"
|
||||
"diff-so-fancy"
|
||||
"e2fsprogs"
|
||||
"fd"
|
||||
"ffmpeg"
|
||||
"flyctl"
|
||||
"fzf"
|
||||
"gh"
|
||||
"git-delta"
|
||||
"git-filter-repo"
|
||||
"git-lfs"
|
||||
"gitleaks"
|
||||
"gnu-time"
|
||||
"go"
|
||||
"hashicorp/tap/terraform"
|
||||
"helm"
|
||||
"imagemagick"
|
||||
"jnsahaj/lumen/lumen"
|
||||
"jq"
|
||||
"k9s"
|
||||
"kind"
|
||||
"lazygit"
|
||||
"libpq"
|
||||
"librsvg"
|
||||
"livekit"
|
||||
"livekit-cli"
|
||||
"llmfit"
|
||||
"mactop"
|
||||
"minikube"
|
||||
"mint"
|
||||
"mise"
|
||||
"neovim"
|
||||
"nicosuave/tap/memex"
|
||||
"node"
|
||||
"openjdk"
|
||||
"pandoc"
|
||||
"pipx"
|
||||
"poppler"
|
||||
"portaudio"
|
||||
"postgresql@14"
|
||||
"postgresql@16"
|
||||
"postgresql@17"
|
||||
"potrace"
|
||||
"redis"
|
||||
"resvg"
|
||||
"ripgrep"
|
||||
"semgrep"
|
||||
"sevenzip"
|
||||
"sox"
|
||||
"steipete/tap/bird"
|
||||
"steipete/tap/gogcli"
|
||||
"steipete/tap/summarize"
|
||||
"stow"
|
||||
"stripe/stripe-cli/stripe"
|
||||
"supabase/tap/supabase"
|
||||
"swiftformat"
|
||||
"swiftlint"
|
||||
"tailscale"
|
||||
"tmux"
|
||||
"tree"
|
||||
"trivy"
|
||||
"universal-ctags"
|
||||
"websocat"
|
||||
"wget"
|
||||
"withgraphite/tap/graphite"
|
||||
"worktrunk"
|
||||
"yazi"
|
||||
"yq"
|
||||
"yt-dlp"
|
||||
"zoxide"
|
||||
"zsh-autosuggestions"
|
||||
"zsh-syntax-highlighting"
|
||||
];
|
||||
|
||||
casks = [
|
||||
"aerospace"
|
||||
"anaconda"
|
||||
"codelayer"
|
||||
"codex"
|
||||
"codexbar"
|
||||
"companion"
|
||||
"emacs-app"
|
||||
"font-jetbrains-mono"
|
||||
"font-symbols-only-nerd-font"
|
||||
"gcloud-cli"
|
||||
"ghostty@tip"
|
||||
"ngrok"
|
||||
"opencode-desktop"
|
||||
"osaurus"
|
||||
"pants"
|
||||
"riptide-beta"
|
||||
"riptide-dev"
|
||||
"riptide-experimental"
|
||||
"virtualbox"
|
||||
"warp"
|
||||
];
|
||||
};
|
||||
}
|
||||
14
modules/macos.nix
Normal file
14
modules/macos.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
system.defaults = {
|
||||
dock.autohide = true;
|
||||
dock.show-recents = false;
|
||||
|
||||
NSGlobalDomain = {
|
||||
ApplePressAndHoldEnabled = false;
|
||||
InitialKeyRepeat = 15;
|
||||
KeyRepeat = 2;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue