PIAnC - Personal Infrastructure As (Nix) Code
April 21, 2026 ยท View on GitHub
PIAnC - Personal Infrastructure As (Nix) Code
This repository contains my personal infrastructure as code and host configurations.
It is built as a Nix flake using the Den framework and organized into reusable modules for:
- host definitions
- desktop environments
- system and user profiles
- services
- custom packages
Repository layout
modules/: reusable modules (base system, hosts, services, desktop, tooling, etc.)pkgs/by-name/: local package definitionsfiles/: static files copied into target systems_to_migrate/: legacy or in-progress migration content
Common commands
Enter development shell
nix develop
Format all supported files
nix fmt
Run flake checks
nix flake check
Build a host configuration
nix build .#nixosConfigurations.<host>.config.system.build.toplevel
Switch local machine to a host config
sudo nixos-rebuild switch --flake .#<host>
Notes
flake.nixis auto-generated. Usenix run .#write-flaketo regenerate it.