I just like having lists that show what's going on, and light redundancy doesn't bother me.
13 lines
277 B
Nix
13 lines
277 B
Nix
{ config, lib, pkgs, configFiles, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.myModules.cloud-init.enable = mkEnableOption "custom cloud-init configuration";
|
|
config = mkIf config.myModules.cloud-init.enable {
|
|
services.cloud-init = {
|
|
enable = true;
|
|
network.enable = true;
|
|
};
|
|
};
|
|
}
|