Skip to content

Instantly share code, notes, and snippets.

@aduh95
Created May 28, 2024 20:29
Show Gist options
  • Save aduh95/affe5ba977acaaa8f480bc7d98161ec9 to your computer and use it in GitHub Desktop.
Save aduh95/affe5ba977acaaa8f480bc7d98161ec9 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
{
nixpkgs.config = {
allowUnfree = true;
};
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "duhamean";
home.homeDirectory = "/Users/duhamean";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "24.05";
home.sessionVariables = {
EDITOR = "vim";
NODE_PATH = "$HOME/.npm-packages/lib/node_modules";
PATH = "$HOME/.npm-packages/bin:$PATH";
};
home.packages = [
pkgs.awscli2
pkgs.ccache
pkgs.cmake
pkgs.curl
pkgs.deno
# pkgs.firefox # no available on aarch64-darwin
pkgs.git-lfs
pkgs.gnumake
pkgs.imagemagick
pkgs.jq
pkgs.mpv-unwrapped
pkgs.newt
pkgs.ninja
# pkgs.nix
pkgs.nodejs-slim
pkgs.ollama
pkgs.php83
pkgs.php83Packages.composer
pkgs.php83Packages.phpcs
pkgs.s3cmd
# pkgs.signal-desktop # no available on aarch64-darwin
pkgs.transmission_4
# pkgs.ungoogled-chromium # no available on aarch64-darwin
# pkgs.vlc # no available on aarch64-darwin
];
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
programs.gh = {
enable = true;
settings = {
# Workaround for https://github.com/nix-community/home-manager/issues/4744
version = 1;
editor = "vi";
aliases = {
co = "pr checkout";
pv = "pr view";
};
};
};
programs.gpg = {
enable = true;
settings = {
auto-key-retrieve = true;
no-emit-version = true;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment