KISS NixOS configuration based on Flakes & flake-parts (supports macOS too)
Find a file
Sridhar Ratnakumar 1efe6144cc DRY hm mods
2022-12-01 17:01:08 -05:00
.vscode vscode: makefile ext 2022-11-10 11:11:25 -05:00
home Enable emacs 2022-12-01 16:50:33 -05:00
nixos Add 2nd user (#24) 2022-12-01 16:49:27 -05:00
systems Add 2nd user (#24) 2022-12-01 16:49:27 -05:00
.envrc flake'ify shell.nix 2022-05-08 10:25:46 -04:00
.gitattributes git: make flake.lock as auto-generated 2022-05-08 10:17:29 -04:00
.gitignore add direnv 2022-04-28 14:47:41 -04:00
flake.lock Update inputs 2022-11-29 10:18:45 -05:00
flake.nix DRY hm mods 2022-12-01 17:01:08 -05:00
Makefile disable 'make' 2022-11-16 18:08:41 -05:00
README.md readme: remove outdated 2022-11-04 11:22:59 -04:00

This repository contains the Nix / NixOS configuration for all of my systems. Start from flakes.nix (see Flakes).

To build,

# First, edit nixosConfigurations in flake.nix to add your system's hostname.
# And then change `userName` to your username.
nix run

Install notes

Directory layout

  • home: home-manager config
  • nixos: nixos config (includes nix-darwin)
  • systems: top-level configuration.nix('ish) for various kinds of system

Tips

  • To update NixOS (and other inputs) run nix flake update2
  • To autoformat the project tree using nixpkgs-fmt, run nix fmt.

  1. You might have to rm -rf /etc/nix/nix.conf, so our flake.nix can do its thing. ↩︎

  2. You may also update the inputs selectively, viz.: nix flake lock --update-input nixpkgs --update-input darwin --update-input home-manager ↩︎