[Filesystems] Remove aviallon.boot.resumeDevice

boot.resumeDevice should probably be used instead.
If disabling hibernation and resume is needed, use aviallon.boot.cmdline.hibernate = "off"
This commit is contained in:
Antoine Viallon 2023-10-31 23:37:20 +01:00
parent 0c68b4cf87
commit adaf03c542
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -8,6 +8,7 @@ in
{
imports = [
./filesystems
(mkRemovedOptionModule [ "aviallon" "filesystems" "resumeDevice"] "Use boot.resumeDevice instead")
];
options.aviallon.filesystems = {
@ -48,12 +49,6 @@ in
type = types.listOf types.str;
};
lvm = mkEnableOption "lvm options required for correct booting";
resumeDevice = mkOption {
default = null;
description = "Swap device used for hibernation/resuming.";
example = "LABEL=nixos-swap";
type = types.nullOr types.str;
};
};
config = mkIf cfg.enable {
@ -71,15 +66,6 @@ in
++ optionals config.aviallon.boot.kvdo.enable [ "kvdo" ]
;
aviallon.boot.cmdline = {
resume =
if isNull cfg.resumeDevice
then "none"
else cfg.resumeDevice
;
};
boot.supportedFilesystems = [ "ntfs" "ext4" "vfat" "exfat" ];
aviallon.filesystems.udevRules = mkBefore (concatLists [