+31
-11
nixos/modules/config/swap.nix
+31
-11
nixos/modules/config/swap.nix
·········+realDevice = if config.randomEncryption.enable then "/dev/mapper/${deviceName}" else config.device;······+cryptsetup plainOpen -c ${sw.randomEncryption.cipher} -d ${sw.randomEncryption.source} ${sw.device} ${sw.deviceName}···-serviceConfig.ExecStop = optionalString sw.randomEncryption "${pkgs.cryptsetup}/bin/cryptsetup luksClose ${sw.deviceName}";+serviceConfig.ExecStop = optionalString sw.randomEncryption.enable "${pkgs.cryptsetup}/bin/cryptsetup luksClose ${sw.deviceName}";-in listToAttrs (map createSwapDevice (filter (sw: sw.size != null || sw.randomEncryption) config.swapDevices));+in listToAttrs (map createSwapDevice (filter (sw: sw.size != null || sw.randomEncryption.enable) config.swapDevices));
+1
-1
nixos/modules/system/boot/stage-1.nix
+1
-1
nixos/modules/system/boot/stage-1.nix
···preLVMCommands preDeviceCommands postDeviceCommands postMountCommands preFailCommands kernelModules;resumeDevices = map (sd: if sd ? device then sd.device else "/dev/disk/by-label/${sd.label}")