allow cloud-init to support creating btrfs partitions
This commit is contained in:
parent
50602de85e
commit
a965921af9
|
@ -3,7 +3,16 @@
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let cfg = config.services.cloud-init;
|
let cfg = config.services.cloud-init;
|
||||||
path = with pkgs; [ cloud-init nettools utillinux e2fsprogs shadow openssh iproute ];
|
path = with pkgs; [
|
||||||
|
cloud-init
|
||||||
|
iproute
|
||||||
|
nettools
|
||||||
|
openssh
|
||||||
|
shadow
|
||||||
|
utillinux
|
||||||
|
] ++ optional config.services.cloud-init.btrfs btrfs-progs
|
||||||
|
++ optional config.services.cloud-init.ext4 e2fsprogs
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
@ -29,6 +38,22 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
btrfs = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Allow the cloud-init service to operate `btrfs` filesystem.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
ext4 = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Allow the cloud-init service to operate `ext4` filesystem.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
config = mkOption {
|
config = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = ''
|
default = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user