$ tree -v --dirsfirst -L 1
.
├── dev # `nix develop .#package & source interactive.bash`
├── hosts # enable modules for a host
├── modules # custom modules mixing nixos and home-manager
├── pkgs # define custom packages
├── LICENSE # MIT
├── README.md # *you are here
├── flake.lock # pin inputs' versions
└── flake.nix # config entrypoint
$ nix flake show | grep -v omitted
.
├───legacyPackages
├───nixosConfigurations
│ ├───athamas: NixOS configuration
│ ├───charon: NixOS configuration
│ ├───clotho: NixOS configuration
│ ├───cretheus: NixOS configuration
│ └───sisyphus: NixOS configuration
├───overlays
│ └───packages: Nixpkgs overlay
└───packages
├───aarch64-darwin
├───aarch64-linux
├───armv6l-linux
├───armv7l-linux
├───i686-linux
├───powerpc64le-linux
├───riscv64-linux
├───x86_64-darwin
├───x86_64-freebsd
└───x86_64-linux
├───google-photos-takeout-helper: package 'google-photos-takeout-helper-5.0.5'
├───ideamaker: package 'ideamaker-5.2.2.8570'
└───prepare-nixos-disk: package 'prepare-nixos-disk'# build and deploy local configuration
sudo nixos-rebuild switch --flake .
# build target configuration locally and push over ssh
nixos-rebuild switch --flake . --target-host user@targetHost --ask-sudo-password
# provisioning a new host with a USB drive:
sudo nix run .#prepare-nixos-disk
nix build .#nixosConfigurations.clotho.config.system.build.isoImage
sudo cp result/iso/*.iso /dev/sdX
# don't forget to disable secure boot
# set passwd
# sudo tailscale login --qr
# follow https://nixos.org/manual/nixos/stable/#sec-installation-manual-partitioningTip
Copying /nix/store paths during remote deployments requires that the ssh user be in nix.settings.trusted-users.