summaryrefslogtreecommitdiff
path: root/Omni/Bild.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Bild.nix')
-rw-r--r--Omni/Bild.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/Omni/Bild.nix b/Omni/Bild.nix
index 90fa979..a7c4e32 100644
--- a/Omni/Bild.nix
+++ b/Omni/Bild.nix
@@ -240,6 +240,15 @@ let
# build an operating system. 'cfg' is the NixOS config
os = cfg: (stable.nixos (_args: cfg)).toplevel;
+ # build an os image for a digital ocean droplet
+ droplet = cfg:
+ (stable.nixos ({ modulesPath, ... }: {
+ imports = [
+ "${toString modulesPath}/virtualisation/digital-ocean-image.nix"
+ (_args: cfg)
+ ];
+ })).digitalOceanImage;
+
# build a docker image
image = stable.dockerTools.buildImage;
};