10 lines
363 B
Nix
10 lines
363 B
Nix
{ config, lib, ... }: {
|
|
options.snowflake.services.cloud-init.enable =
|
|
lib.mkEnableOption "enable cloud-init module";
|
|
|
|
config = lib.mkIf config.snowflake.services.cloud-init.enable {
|
|
services.cloud-init.enable = true;
|
|
systemd.services.cloud-config.serviceConfig = { Restart = "on-failure"; };
|
|
services.cloud-init.network.enable = true;
|
|
};
|
|
}
|