mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-23 23:15:37 +00:00
27 lines
1.2 KiB
Markdown
27 lines
1.2 KiB
Markdown
# Hosts
|
|
|
|
These are the individual machines managed by this flake.
|
|
|
|
| Host | Purpose |
|
|
| --- | --- |
|
|
| [aws](./aws/default.nix) | AWS AMI |
|
|
| [staff](./staff/default.nix) | Live USB stick |
|
|
| [flame](./flame/default.nix) | Oracle cloud server |
|
|
| [hydra](./hydra/default.nix) | WSL config |
|
|
| [lookingglass](./lookingglass/default.nix) | Work MacBook |
|
|
| [swan](./swan/default.nix) | Home server |
|
|
| [tempest](./tempest/default.nix) | Linux desktop |
|
|
|
|
## NixOS Workflow
|
|
|
|
Each hosts file is imported into [nixosConfigurations](../flake.nix) and passed
|
|
the arguments from the flake (inputs, globals, overlays). The `nixosSystem`
|
|
function in that hosts file will be called by the NixOS module system during a
|
|
nixos-rebuild.
|
|
|
|
Each module in the each host's `modules` list is either a function or an
|
|
attrset. The attrsets will simply apply values to options that have been
|
|
declared in the config by other modules. Meanwhile, the functions will be
|
|
passed various arguments, several of which you will see listed at the top of
|
|
each of their files.
|