Skip to content

flemzord/nixos-config

 
 

Repository files navigation

Nix / NixOS config

Psst: I can help write Nix at your company. Get in touch.

Overview

Hey, you made it! Welcome. 🤓

This is my personal NixOS configuration, which I use on my personal computers and servers. It's a work in progress, but it's already pretty cool. I'm sharing it here in case it's useful to others.

Structure

  • hosts/<host>: per‑host configs (NixOS and macOS).
  • modules/: reusable modules (services/, programs/, roles/, common/).
  • flake.nix: flake inputs/outputs; Makefile: convenience targets.

Dev environment

  • Enable direnv with direnv allow (see .envrc).
  • Enter dev shell: nix develop (provides nixpkgs-fmt, statix, deadnix, nil, pre-commit).
  • Common commands: make fmt, make lint (non-bloquant), make lint-ci (strict), make build, make check.

Bootstrap New Computer

For MacOS, install Nix package manager and dependencies

xcode-select --install
sh <(curl -L https://nixos.org/nix/install) --daemon
make switch

Update dependencies

nix flake update

About

Flake-based Nix / NixOS configuration for MacOS, x86, and VMs ✨

Resources

License

Stars

Watchers

Forks

Languages

  • Nix 97.2%
  • Makefile 2.8%