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.
19 lines
502 B
Nix
19 lines
502 B
Nix
{
|
|
description = "fridge-007 — a nix-ota-managed device";
|
|
|
|
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.fridge-007 = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
modules = [
|
|
nix-ota.nixosModules.agent
|
|
./configuration.nix
|
|
];
|
|
};
|
|
};
|
|
}
|