mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
54618b8fd6f991f1941801c9f63770f8b1b24929
• Updated input 'darwin': 'github:lnl7/nix-darwin/550340062c16d7ef8c2cc20a3d2b97bcd3c6b6f6' (2024-03-07) → 'github:lnl7/nix-darwin/c7ae5dc969b93f3221f5c228f0ec3de3e2b8084e' (2024-03-12) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/9a9a7552431c4f1a3b2eee9398641babf7c30d0e' (2024-03-12) → 'github:NixOS/nixpkgs/7eeacecff44e05a9fd61b9e03836b66ecde8a525' (2024-03-12)
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%