nixos/hosts/macbook/home.nix

99 lines
2.4 KiB
Nix
Raw Permalink Normal View History

{
config,
pkgs,
pkgs-unstable,
2025-08-24 00:03:26 -07:00
opencode-tunneler,
user,
...
} :
let
username = user.name;
homeDirectory = user.homeDirectory;
in {
2025-05-03 23:42:03 -07:00
imports = [
../../home-modules/default.nix
2025-05-03 23:42:03 -07:00
../../home-modules/direnv.nix
../../home-modules/ghostty-config.nix
../../home-modules/git.nix
../../home-modules/homebrew.nix
../../home-modules/karabiner.nix
../../home-modules/lazygit.nix
../../home-modules/nvim.nix
../../home-modules/secretive.nix
../../home-modules/starship.nix
../../home-modules/tmux.nix
../../home-modules/opencode-config.nix
../../home-modules/zsh.nix
2025-05-03 23:42:03 -07:00
];
ghostty = {
font-size = "17.2";
window-decoration = true;
};
nvim = {
enable = true;
package = pkgs-unstable.neovim;
};
2025-05-03 23:42:03 -07:00
home = {
username = username;
homeDirectory = homeDirectory;
2025-05-03 23:42:03 -07:00
packages = with pkgs; [
pkgs-unstable.cmake
clang
nerd-fonts.bigblue-terminal
nerd-fonts.fira-code
2025-05-03 23:42:03 -07:00
exercism
typescript-language-server # TODO: Defer to individual projects.
2025-05-03 23:42:03 -07:00
audacity
(pkgs-unstable.litellm.overrideAttrs (oldAttrs: rec {
version = "1.74.9";
src = pkgs.fetchFromGitHub {
owner = "BerriAI";
repo = "litellm";
tag = "v${version}-stable";
hash = "sha256-SGZwt2jzAQbOMlvudqPWat281su6OwT7JG2CNSMjL3A=";
};
}))
pkgs-unstable.vscode
2025-08-24 00:03:26 -07:00
pkgs-unstable.ngrok
pkgs-unstable.go
pkgs-unstable.gopls
pkgs-unstable.gotools
pkgs-unstable.bun
# Expo.
pkgs-unstable.nodejs_24
pkgs-unstable.eas-cli
2025-08-24 00:03:26 -07:00
opencode-tunneler.packages.aarch64-darwin.default
2025-05-03 23:42:03 -07:00
];
stateVersion = "24.11";
};
programs.zsh = {
shellAliases = {
# TODO BEGIN Interpolate the name of the host here.
flakeconf = "nvim ${homeDirectory}/nixos/flake.nix";
sysconf = "nvim ${homeDirectory}/nixos/hosts/macbook/configuration.nix";
homeconf = "nvim ${homeDirectory}/nixos/hosts/macbook/home.nix";
nvconf = "nvim ${homeDirectory}/nixos/home-modules/explicit-configs/nvim/init.lua";
rshellconf = "source ${homeDirectory}/.zshrc";
nrsw = "sudo darwin-rebuild switch --flake ${homeDirectory}/nixos#macbook";
opencode-local = "${homeDirectory}/dev/opencode/dist-local/bin/opencode";
2025-05-03 23:42:03 -07:00
};
initContent = ''
export PATH=$PATH:$HOME/bin
export PATH=$PATH:$HOME/.opencode/bin
2025-09-30 10:54:18 -07:00
export PATH=$PATH:$HOME/.local/bin
'';
2025-05-03 23:42:03 -07:00
};
}