mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
dfea3c15bd1f30a0b088e122c90a79bba69315d7
• Updated input 'nixos-hardware': 'github:NixOS/nixos-hardware/106d3fec43bcea19cb2e061ca02531d54b542ce3' (2024-02-16) → 'github:NixOS/nixos-hardware/3f7d0bca003eac1a1a7f4659bbab9c8f8c2a0958' (2024-02-22) • Updated input 'nixpkgs-unstable': 'github:NixOS/nixpkgs/b50a77c03d640716296021ad58950b1bb0345799' (2024-02-21) → 'github:NixOS/nixpkgs/98b00b6947a9214381112bdb6f89c25498db4959' (2024-02-22)
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%