diff options
Diffstat (limited to 'modules/hostings/selectel.nix')
| -rw-r--r-- | modules/hostings/selectel.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/hostings/selectel.nix b/modules/hostings/selectel.nix new file mode 100644 index 0000000..0880dbe --- /dev/null +++ b/modules/hostings/selectel.nix @@ -0,0 +1,29 @@ +{ + config, + lib, + ... +}: + +{ + options.hostings.selectel.enable = lib.mkEnableOption "Server on Selectel platform"; + + # See https://docs.selectel.ru/en/cloud-servers/images/create-custom-image/ + config = lib.mkIf config.hostings.selectel.enable { + disko.devices.disk.main.device = "/dev/sda"; + + boot.loader.grub.efiSupport = false; + + services.qemuGuest.enable = true; + services.cloud-init = { + enable = true; + network.enable = true; + settings = { + datasource_list = [ + "ConfigDrive" + "Ec2" + "None" + ]; + }; + }; + }; +} |
