Skip to content

drupol/infra

Repository files navigation

GitHub stars License Donate!

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 definitions
  • files/: 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.nix is auto-generated. Use nix run .#write-flake to regenerate it.

About

Contains the configuration of every home computers

Resources

License

Stars

Watchers

Forks

Contributors