diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-11-13 10:28:40 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-11-13 10:28:40 +0000 |
commit | a5c74762cbe96149673be60b0fcd51632642265e (patch) | |
tree | 66f415adec54aa69d1ac584510a25235a4cbfc39 /nixos/modules/services/system/cloud-init.nix | |
parent | a965921af95859ec78f8f5b59f94e78a87d2d57b (diff) |
nixos/cloud-init: add enable suffix to ext4/btrfs
Makes the optional more self-describing and allows future extensions
Diffstat (limited to 'nixos/modules/services/system/cloud-init.nix')
-rw-r--r-- | nixos/modules/services/system/cloud-init.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/services/system/cloud-init.nix b/nixos/modules/services/system/cloud-init.nix index 59f57307098b3..f22bd45dfebcd 100644 --- a/nixos/modules/services/system/cloud-init.nix +++ b/nixos/modules/services/system/cloud-init.nix @@ -10,15 +10,13 @@ let cfg = config.services.cloud-init; openssh shadow utillinux - ] ++ optional config.services.cloud-init.btrfs btrfs-progs - ++ optional config.services.cloud-init.ext4 e2fsprogs + ] ++ optional cfg.btrfs.enable btrfs-progs + ++ optional cfg.ext4.enable e2fsprogs ; in { options = { - services.cloud-init = { - enable = mkOption { type = types.bool; default = false; @@ -38,7 +36,7 @@ in ''; }; - btrfs = mkOption { + btrfs.enable = mkOption { type = types.bool; default = false; description = '' @@ -46,7 +44,7 @@ in ''; }; - ext4 = mkOption { + ext4.enable = mkOption { type = types.bool; default = true; description = '' |