2023-12-07 20:12:58 +00:00
|
|
|
{
|
|
|
|
description = "A NixOS image builder for DigitalOcean.";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
module = {
|
|
|
|
imports = [
|
|
|
|
"${nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix"
|
|
|
|
];
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
};
|
2023-12-08 00:13:57 +00:00
|
|
|
in {
|
2023-12-07 20:12:58 +00:00
|
|
|
packages.${system}.default = (pkgs.nixos module).digitalOceanImage;
|
|
|
|
};
|
|
|
|
}
|