Add worked example: server-host and device-host flakes
Self-contained example under examples/ with full NixOS flakes for both sides of a deployment (control server + binary cache vs. an agent device), plus a README walking through the end-to-end install + first publish.
This commit is contained in:
parent
42b2ce4d1d
commit
f72d24596a
6 changed files with 309 additions and 0 deletions
19
examples/server-host/flake.nix
Normal file
19
examples/server-host/flake.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
description = "ota.example.com — nix-ota control plane + binary cache";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||
nix-ota.url = "git+https://linus.dyrehytten.dk/max/nix-ota";
|
||||
nix-ota.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, nix-ota, ... }: {
|
||||
nixosConfigurations.ota = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
nix-ota.nixosModules.server
|
||||
./configuration.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue