This repo contains my Nix configs for macOS and Linux and by extension, configuration for most tools/programs I use, at least in the terminal.
I'm continuously tweaking/improving my setup, trying to find ways to make more of my configuration declarative, and I like experimenting with bleeding edge updates/features, so this repo sees a lot of changes. I do try to ensure that master
always builds and doesn't have any bad bugs (at least in my workflow), and keep the code fairly well documented.
Feel free to file an issue or start a discussion if you find a bug, or think something is broken, or think I'm doing something in a dumb/clumsy way and have a suggestion for a more elegant alternative, or try to crib something from my config but just can't get it working, or are looking at my config and think to yourself "does this guy know about X, cause I bet he'd be into it", or have some other type of feedback/comment. (Issues, are better for things that are actually issues, while discussions are better for ideas, questions, etc.)
I make no promises that I'll respond quickly, or fix the bug (especially if I'm not experiencing it), or whatever, but you definitely shouldn't feel like you're imposing in any way, and I probably will respond within a few days.
Below, I've highlighted stuff that I'm particularly happy with or think others might find helpful/useful.
In no particular order:
- Flakes!
- All external dependencies managed through flakes for easy updating.
- Outputs for
nix-darwin
macOS system configurations (usinghome-manager
as anix-darwin
module) and ahome-manager
user configuration for Linux. darwinModules
output fornix-darwin
modules that are pending upstream:security-pam
that provides an option,enableSudoTouchIdAuth
, which enables using Touch ID forsudo
authentication. (Pending upstream PR #228.)programs-nix-index
that augmentsnix-darwins
'sprograms.nix-index
module with a command not found handler for Fish. (Pending upstream PR #272.)
homeManagerModules
output forhome-manager
modules with additional functionality and prepackaged configuration:programs-neovim-extras
that providestermBufferAutoChangeDir
, andnvrAliases
options.programs-kitty-extras
that provides a,colors
option to configure a light and dark colorscheme, which when used also addsterm-light
,term-dark
, andterm-background
scripts tohome.packages
to easily switch between them; anduseSymbolsFromNerdFont
option to use symbols from a NerdFont while using any font with Kitty.
malo-git-aliases
malo-gh-aliases
- Support for non-flake compatible versions of Nix and legacy workflows through
flake-compat
:default.nix
, allows traditional Nix commands likenix-build
to operate on the flake inputs/outputs.nixpkgs.nix
, functions as a wrapper for thenixpkgs
input of the flake. This can be used for things like setting<nixpkgs>
by, e.g., settingnix.nixPath = { nixpkgs = "$HOME/.config/nixpkgs/nixpkgs.nix"; };
innix-darwin
.
- Support for Macs with Apple Silicon including ability to easily overlay in x86 version of packages, when they don't build on arm. Search
pkgs-x86
inflake.nix
and seenix.extraOptions
indarwin/bootstrap.nix
for details. - A GitHub workflow that builds the my macOS system
nix-darwin
config andhome-manager
Linux user config, and updates a Cachix cache. Also, once a week it updates all the flake inputs before building, and if the build succeeds, it commits the changes. - Git config with a bunch of handy aliases and better diffs using
delta
, - A slick Neovim 0.6 config in Lua (some bugs probably exist due to recent update to 0.6). See also:
neovim.nix
. - Unified colorscheme (based on Solarized) with light and dark variant for Kitty terminal, Fish shell, Neovim, and other tools, where toggling between light and dark can be done for all of them simultaneously by calling a Fish function. This is achieved by:
- adding Solarized colors to
pkgs
via an overlay; - using my
programs-kitty-extras
home-manager
module (see above); - using a self-made WIP Solarized based colorscheme with Neovim; and
- a Fish shell config, which provides a
toggle-background
function (and an aliastb
) which toggles a universal environment variable ($term_background
) between the values"light"
and"dark"
, along withset-shell-colors
function which trigger automatically when$term_background
changes.
- adding Solarized colors to