Merge #302
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:
commit
1a87b83b5d
|
@ -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
10
doc/flk/doi.md
Normal 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`.
|
|
@ -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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue