mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[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:
parent
0c68b4cf87
commit
adaf03c542
1 changed files with 1 additions and 15 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue