1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

treewide: nix fmt

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-09-07 09:17:42 -05:00
parent c140680b7a
commit 9136120c36
3 changed files with 0 additions and 18 deletions

View file

@ -65,7 +65,6 @@
let
inherit (lib)
concatStringsSep
splitString
mapAttrsToList
any
;

View file

@ -21,7 +21,6 @@ let
isList
isString
literalExpression
maintainers
mapAttrsToList
mkDefault
mkEnableOption

View file

@ -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