mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
0bf8efb914719e1c940b11b03b230a1d6e9b016c
• Updated input 'darwin': 'github:lnl7/nix-darwin/6c06334f0843c7300d1678726bb607ce526f6b36' (2024-02-27) → 'github:lnl7/nix-darwin/283d59778e6b8c41cac4bdeac5b2512d6de51150' (2024-02-28) • Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958' (2024-02-22) → 'github:NixOS/nixos-hardware/33a97b5814d36ddd65ad678ad07ce43b1a67f159' (2024-02-28) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/8520c158aee718c6e87b56881105fc4223c3c723' (2024-02-27) → 'github:NixOS/nixpkgs/d53c2037394da6fe98decca417fc8fda64bf2443' (2024-02-28)
nix-config
This repo stores nix to manage my machines running NixOS and macOS.
The configuration is very specific to my own machines and setup, but it may be a useful reference for anyone else learning or experimenting with nix, whether it be on a personal workstation or a server environment.
Setup
on macOS: install the latest unstable nix from https://github.com/numtide/nix-unstable-installer (for nix flakes), and nix-darwin: https://github.com/LnL7/nix-darwin
To run a rebuild:
make
Update
To update nixpkgs defined in flake.nix, run:
make update
If there are updates, they should be reflected in flake.lock.
Rollback
To rollback to the previous generation:
make rollback
Pre-commit hooks
Pre-commit hooks are automatically activated when direnv is installed.
Languages
Nix
96.6%
Shell
1.9%
Just
1.5%