nixos/preload: drop

This commit is contained in:
éclairevoyant
2025-11-29 08:37:21 -05:00
parent ff26b98943
commit 9482ff9cb0
4 changed files with 11 additions and 38 deletions
@@ -1110,7 +1110,7 @@ Make sure to also check the many updates in the [Nixpkgs library](#sec-release-2
- [preload](http://sourceforge.net/projects/preload), a service that makes
applications run faster by prefetching binaries and shared objects.
Available as [services.preload](#opt-services.preload.enable).
Available as `services.preload`.
### Other Notable Changes {#sec-release-23.11-nixos-notable-changes}
-1
View File
@@ -913,7 +913,6 @@
./services/misc/podgrab.nix
./services/misc/polaris.nix
./services/misc/portunus.nix
./services/misc/preload.nix
./services/misc/pufferpanel.nix
./services/misc/pykms.nix
./services/misc/radicle.nix
+10
View File
@@ -71,6 +71,16 @@ in
"programs"
"gnome-documents"
] "The corresponding package was removed from nixpkgs.")
(mkRemovedOptionModule
[
"services"
"preload"
]
''
The corresponding package was removed from nixpkgs,
due to lack of usage and being broken since its introduction.
''
) # added 2025-11-29
(mkRemovedOptionModule [
"programs"
"goldwarden"
-36
View File
@@ -1,36 +0,0 @@
{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.preload;
in
{
meta = {
maintainers = pkgs.preload.meta.maintainers;
};
options.services.preload = {
enable = lib.mkEnableOption "preload";
package = lib.mkPackageOption pkgs "preload" { };
};
config = lib.mkIf cfg.enable {
systemd.services.preload = {
description = "Loads data into ram during idle time of CPU.";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
EnvironmentFile = "${cfg.package}/etc/conf.d/preload";
ExecStart = "${lib.getExe cfg.package} -l '' --foreground $PRELOAD_OPTS";
Type = "simple";
# Only preload data during CPU idle time
IOSchedulingClass = 3;
DynamicUser = true;
StateDirectory = "preload";
};
};
};
}