302: customBuilds: add digitalOcean r=Pacman99 a=jwygoda

https://github.com/divnix/digga/pull/42

Co-authored-by: Jarosław Wygoda <jaroslaw@wygoda.me>
This commit is contained in:
bors[bot] 2021-06-03 07:45:26 +00:00 committed by GitHub
commit 1a87b83b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -24,6 +24,7 @@
- [up](./flk/up.md) - [up](./flk/up.md)
- [update](./flk/update.md) - [update](./flk/update.md)
- [get](./flk/get.md) - [get](./flk/get.md)
- [doi](./flk/doi.md)
- [iso](./flk/iso.md) - [iso](./flk/iso.md)
- [install](./flk/install.md) - [install](./flk/install.md)
- [home](./flk/home.md) - [home](./flk/home.md)

10
doc/flk/doi.md Normal file
View File

@ -0,0 +1,10 @@
# DigitalOcean
Now you can [create a droplet](https://cloud.digitalocean.com/droplets/new) using your custom image.
Making a DigitalOcean compatible image for `hosts/NixOS.nix` is as simple as:
```sh
flk doi NixOS
```
This works for any file matching `hosts/*.nix` excluding `default.nix`.

View File

@ -25,5 +25,9 @@ in
} }
]; ];
})).config.home-manager.users; })).config.home-manager.users;
digitalOcean = (mkBuild ({ modulesPath, ... }: {
imports = [ "${modulesPath}/virtualisation/digital-ocean-image.nix" ];
})).config.system.build.digitalOceanImage;
}; };
} }