mirror of
https://github.com/davegallant/nix-config
synced 2025-11-26 03:24:17 +00:00
a541174a6e0cadb9506dba8f56413994f2aefbe2
• Updated input 'darwin':
'github:lnl7/nix-darwin/70d162d4684f738761ab4251c0cee05b5f5d4d53' (2024-03-01)
→ 'github:lnl7/nix-darwin/17c2ca3c7537a2512224242b84e1ea3c08e79b92' (2024-03-03)
• Updated input 'nixos-hardware':
'github:NixOS/nixos-hardware/33a97b5814d36ddd65ad678ad07ce43b1a67f159' (2024-02-28)
→ 'github:NixOS/nixos-hardware/59e37017b9ed31dee303dbbd4531c594df95cfbc' (2024-03-02)
• Updated input 'nixpkgs':
'github:NixOS/nixpkgs/068d4db604958d05d0b46c47f79b507d84dbc069' (2024-02-29)
→ 'github:NixOS/nixpkgs/79baff8812a0d68e24a836df0a364c678089e2c7' (2024-03-01)
• Updated input 'nixpkgs-unstable':
'github:NixOS/nixpkgs/ec869190b56a1b4677d24a8bdbcfe80ccea2ece6' (2024-03-01)
→ 'github:NixOS/nixpkgs/458b097d81f90275b3fdf03796f0563844926708' (2024-03-02)
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.3%
Shell
2.1%
Just
1.6%