My NixOS config.
Nix 80.8%
Nushell 5.4%
Other 13.9%
308 1 0

Clone this repository

https://tangled.org/trespaul.com/config https://tangled.org/did:plc:jwnx3y7d52kxmn2h5kwjsyuj/config
git@tangled.org:trespaul.com/config git@tangled.org:did:plc:jwnx3y7d52kxmn2h5kwjsyuj/config

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

my nixos config flake#

Deploy on remote using deploy-rs or

nixos-rebuild \
  --flake .#remote_host \
  --use-remote-sudo \
  --target-host remote_host \
  --build-host remote_host \
  switch

Structure#

machines                — machine-specific config;
└─ {hostname}             all are auto-imported
   ├─ configuration.nix
   ├─ hardware-configuration.nix
   └─ home.nix
modules                 — modules; all auto-imported,
├─ home/…                 switch on in flake.nix
└─ ….nix
secrets                 — secrets; add here and to
├─ encrypted/…            machine-specific configs
└─ secrets.nix
flake.lock
flake.nix
README.md

Sections from machine-specific configs are broken out into modules when the section is or can be reused, or if it becomes too big and deserves its own file.