10 lines
304 B
Nix
10 lines
304 B
Nix
{ inputs, system ? "x86_64-linux" }:
|
|
let
|
|
pkgs = inputs.nixpkgs.legacyPackages.${system};
|
|
config = { config, ... }: {
|
|
imports = [ "${inputs.nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix" ];
|
|
|
|
system.stateVersion = config.system.nixos.release;
|
|
};
|
|
in
|
|
(pkgs.nixos config).digitalOceanImage |