mirror of
https://github.com/davegallant/nix-config
synced 2026-01-07 18:54:06 +00:00
cf545a0f9184d28b22a3f00ef7fd9c089a37e1b6
• Updated input 'darwin':
'github:lnl7/nix-darwin/0e6857fa1d632637488666c08e7b02c08e3178f8' (2024-02-18)
→ 'github:lnl7/nix-darwin/314a36d99b507892b598da72d0f9d78db084cec9' (2024-02-23)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/526d051b128b82ae045a70e5ff1adf8e6dafa560' (2024-02-20)
→ 'github:NixOS/nixpkgs/3cb4ae6689d2aa3f363516234572613b31212b78' (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.1%
Shell
2.3%
Just
1.6%