From 9136120c369d91144910a985262e3c3b8e8872d6 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 7 Sep 2025 09:17:42 -0500 Subject: [PATCH] treewide: nix fmt Signed-off-by: Austin Horstman --- modules/lib/generators.nix | 1 - modules/misc/nix.nix | 1 - modules/programs/sm64ex.nix | 16 ---------------- 3 files changed, 18 deletions(-) diff --git a/modules/lib/generators.nix b/modules/lib/generators.nix index 2fdbdca18..7ee2afc72 100644 --- a/modules/lib/generators.nix +++ b/modules/lib/generators.nix @@ -65,7 +65,6 @@ let inherit (lib) concatStringsSep - splitString mapAttrsToList any ; diff --git a/modules/misc/nix.nix b/modules/misc/nix.nix index f6f1d9d7d..cc569c68d 100644 --- a/modules/misc/nix.nix +++ b/modules/misc/nix.nix @@ -21,7 +21,6 @@ let isList isString literalExpression - maintainers mapAttrsToList mkDefault mkEnableOption diff --git a/modules/programs/sm64ex.nix b/modules/programs/sm64ex.nix index babc5dd7d..81b9c71f9 100644 --- a/modules/programs/sm64ex.nix +++ b/modules/programs/sm64ex.nix @@ -8,27 +8,11 @@ let inherit (lib) literalExpression mkOption - optionalAttrs types ; cfg = config.programs.sm64ex; - # This is required for tests, we cannot overwrite the dummy package. - package = - if cfg.region == null && cfg.baserom == null && cfg.extraCompileFlags == null then - cfg.package - else - cfg.package.override ( - attrs: - { } - // optionalAttrs (cfg.region != null) { region = cfg.region; } - // optionalAttrs (cfg.baserom != null) { baseRom = cfg.baserom; } - // optionalAttrs (cfg.extraCompileFlags != null) { - compileFlags = cfg.extraCompileFlags; - } - ); - mkConfig = key: value: let