mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:29:24 +08:00
modules.services.preload: init
This commit is contained in:
7
modules/services/preload.nix
Normal file
7
modules/services/preload.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
inputs:
|
||||
{
|
||||
options.nixos.services.preload = let inherit (inputs.lib) mkOption types; in mkOption
|
||||
{ type = types.nullOr (types.submodule {}); default = null; };
|
||||
config = let inherit (inputs.config.nixos.services) preload; in inputs.lib.mkIf (preload != null)
|
||||
{ services.preload.enable = true; };
|
||||
}
|
||||
Reference in New Issue
Block a user