modules.system.nix-ld: only enable for desktop/server

This commit is contained in:
2025-05-24 18:41:54 +08:00
parent 524285fa67
commit 919eb1247c

View File

@@ -1,6 +1,11 @@
inputs:
{
config =
options.nixos.system.nix-ld = let inherit (inputs.lib) mkOption types; in mkOption
{
type = types.nullOr (types.submodule {});
default = if builtins.elem inputs.config.nixos.model.type [ "desktop" "server" ] then {} else null;
};
config = let inherit (inputs.config.nixos.system) nix-ld; in inputs.lib.mkIf (nix-ld != null)
{
programs.nix-ld =
{