types: init swap

This commit is contained in:
David Arnold 2022-11-05 15:17:35 -05:00 committed by lassulus
parent aca927667a
commit efc80d7d89
4 changed files with 131 additions and 3 deletions

View file

@ -42,5 +42,6 @@ in {
# Remember to add config keys here if they are added to types
fileSystems = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "fileSystems" (types.diskoLib.config cfg.devices)));
boot = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "boot" (types.diskoLib.config cfg.devices)));
swapDevices = lib.mkIf cfg.enableConfig (lib.mkMerge (lib.catAttrs "swapDevices" (types.diskoLib.config cfg.devices)));
};
}