nix-ota/examples/device-host/flake.nix
0m.ax f72d24596a 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.
2026-05-25 15:57:32 +02:00

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
];
};
};
}