nixos-rebuild switch --flake .#mew- Deploy system changes to mew hostnix flake check- Validate flake configuration and all packagesnix build .#mew- Build system configuration without deployingnix run .#logbook- Run custom packages (logbook is default package)nix flake update- Update flake.lock with latest input versions
- Use 2-space indentation consistently
- Import modules at top using
{ config, pkgs, lib, inputs, ... }:pattern - Use
let...inblocks for complex expressions and custom packages - Prefer
with pkgs;in package lists for cleaner syntax - Use descriptive variable names (e.g.,
hyprland-cursor-name,chrome-hidpi)
- Host configs in
<hostname>/directories (e.g.,mew/) - Custom packages in
pkgs/with properdefault.nixfiles - Home Manager configs in
<hostname>/home/subdirectory - Group related settings into logical modules (programs.nix, services.nix)
- Include helpful comments for complex derivations and hardware-specific settings
- Document custom wrapper scripts and their purpose
- Use descriptive commit messages following conventional commits format