mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
ee3f0c9b8a169cf5844158f5b22175310f4099e1
• Updated input 'nixpkgs': 'github:NixOS/nixpkgs/b94a96839afcc56de3551aa7472b8d9a3e77e05d' (2024-03-09) → 'github:NixOS/nixpkgs/ddcd7598b2184008c97e6c9c6a21c5f37590b8d2' (2024-03-11) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/0fbcc4b2e8571f4af39be41752581ea09dd9ab06' (2024-03-11) → 'github:NixOS/nixpkgs/9a9a7552431c4f1a3b2eee9398641babf7c30d0e' (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%