mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
e6e27bf3550b99a405777d021e8d6bd6643422d1
• Updated input 'darwin': 'github:lnl7/nix-darwin/daa03606dfb5296a22e842acb02b46c1c4e9f5e7' (2024-03-04) → 'github:lnl7/nix-darwin/550340062c16d7ef8c2cc20a3d2b97bcd3c6b6f6' (2024-03-07) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/617579a787259b9a6419492eaac670a5f7663917' (2024-03-04) → 'github:NixOS/nixpkgs/880992dcc006a5e00dd0591446fdf723e6a51a64' (2024-03-05) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/311a4be96d940a0c673e88bd5bc83ea4f005cc02' (2024-03-05) → 'github:NixOS/nixpkgs/f945939fd679284d736112d3d5410eb867f3b31c' (2024-03-07)
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%