My Nix Infra
nix nixos
README.md

nixfra #

This repo uses zenix library to structure nix files using a standard opinionated directory structure.

This repo includes:

  • config - normal config files of the tools

  • nix - all nix configs

  • wallpapers

Desktop NixOS Setup: #

  1. nix-shell -p just

  2. passwd $(whoami)

  3. just nixos

  4. just nixos-post

Style Guide #

  • Mark the output attributes in *.nix files with keep-sorted comment except imports (which must be sorted first).

  • Mark the imported modules (more than 1) in imports = [ ... ] with keep-sorted comment.

  • Sort the input arguments to *.nix files alphabetically.

  • Use snake_case for internal codes.

  • Hard limit comment length at 80 columns.

  • For the rest, follow any existing style.

  • Run nix fmt, just check after all nix files changes.