Nix Home manager configuration for my MacBook
Go to file
Abhinav Sarkar 0194e0ce3b flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/5ec753a1fc4454df9285d8b3ec0809234defb975' (2024-10-21)
  → 'github:nix-community/home-manager/93435d27d250fa986bfec6b2ff263161ff8288cb' (2024-10-25)
• Updated input 'nix-darwin':
    'github:LnL7/nix-darwin/a60ac02f9466f85f092e576fd8364dfc4406b5a6' (2024-10-14)
  → 'github:LnL7/nix-darwin/2eb472230a5400c81d9008014888b4bff23bcf44' (2024-10-26)
• Updated input 'nix-vscode-extensions':
    'github:nix-community/nix-vscode-extensions/4dfd7581aaf0f25d3b7695a10dcfb1dfe4ebb953' (2024-10-18)
  → 'github:nix-community/nix-vscode-extensions/88bf73817636e232513bff1f3a071b3ae2bcfd14' (2024-10-27)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/7881fbfd2e3ed1dfa315fca889b2cfd94be39337' (2024-10-15)
  → 'github:nixos/nixpkgs/4e0eec54db79d4d0909f45a88037210ff8eaffee' (2024-10-26)
• Updated input 'nixpkgs-stable':
    'github:nixos/nixpkgs/dc2e0028d274394f73653c7c90cc63edbb696be1' (2024-10-16)
  → 'github:nixos/nixpkgs/cd3e8833d70618c4eea8df06f95b364b016d4950' (2024-10-26)
2024-10-27 09:05:08 +05:30
packages Formats files 2024-10-22 18:53:09 +05:30
programs Formats files 2024-10-22 18:53:09 +05:30
scripts Formats files 2024-10-22 18:53:09 +05:30
.envrc Flakyfies and removes program updater service 2022-10-01 12:13:38 +05:30
.gitignore Splits into separate modules 2022-09-27 13:08:52 +05:30
configuration.nix Formats files 2024-10-22 18:53:09 +05:30
flake.lock flake.lock: Update 2024-10-27 09:05:08 +05:30
flake.nix Formats files 2024-10-22 18:53:09 +05:30
home.nix Formats files 2024-10-22 18:53:09 +05:30
homebrew.nix Formats files 2024-10-22 18:53:09 +05:30
justfile Switches to nix-vscode-extensions 2024-09-14 12:15:52 +05:30
launchd.nix Formats files 2024-10-22 18:53:09 +05:30
nix.nix Formats files 2024-10-22 18:53:09 +05:30
README.md Adds Homebrew support and packages 2024-01-31 16:00:03 +05:30
services.nix Formats files 2024-10-22 18:53:09 +05:30
shell.nix Formats files 2024-10-22 18:53:09 +05:30
system.nix Formats files 2024-10-22 18:53:09 +05:30

Nix + Home Manager based MacBook configuration

This is the Nix and Home Manager configuration for managing my MacBook.

Usage

First install Nix and Homebrew. Then, in the repo directory, run nix develop to get into the Nix shell.

To set up the MacBook as per the config, run:

just switch

To update installed packages, run:

just update

To clean up garbage, run:

just clean

If you have just installed, you can also run these commands from any other directory, without starting Nix shell:

just <repo_dir>/switch # or update or clean