nixos: introduce boot.growPartition (#33521)

Move it from being a profile
This commit is contained in:
zimbatm
2018-01-06 13:52:51 +00:00
committed by GitHub
parent 51110e2a0f
commit eddf30cc93
9 changed files with 57 additions and 58 deletions
@@ -11,7 +11,7 @@ with lib;
let cfg = config.ec2; in
{
imports = [ ../profiles/headless.nix ./ec2-data.nix ./grow-partition.nix ./amazon-init.nix ];
imports = [ ../profiles/headless.nix ./ec2-data.nix ./amazon-init.nix ];
config = {
@@ -21,7 +21,7 @@ let cfg = config.ec2; in
}
];
virtualisation.growPartition = cfg.hvm;
boot.growPartition = cfg.hvm;
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";