nixos-configuration/digital-ocean/flake.nix

22 lines
515 B
Nix
Raw Normal View History

{
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 {
packages.${system}.default = (pkgs.nixos module).digitalOceanImage;
};
}