42 lines
698 B
Nix
42 lines
698 B
Nix
![]() |
{
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
|
||
|
{
|
||
|
imports = [ ];
|
||
|
|
||
|
options.me = {
|
||
|
sm64ex.enable = lib.mkOption {
|
||
|
type = lib.types.bool;
|
||
|
default = false;
|
||
|
example = true;
|
||
|
description = "Whether we want to install sm64ex.";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf config.me.sm64ex.enable (
|
||
|
lib.mkMerge [
|
||
|
{
|
||
|
allowedUnfree = [ "sm64ex" ];
|
||
|
}
|
||
|
(lib.mkIf config.me.graphical {
|
||
|
environment.systemPackages = with pkgs; [
|
||
|
sm64ex
|
||
|
];
|
||
|
|
||
|
nixpkgs.overlays = [
|
||
|
(final: prev: {
|
||
|
sm4ex = prev.sm64ex.override {
|
||
|
baseRom.name = "SuperMario64.z64";
|
||
|
};
|
||
|
})
|
||
|
];
|
||
|
|
||
|
})
|
||
|
]
|
||
|
);
|
||
|
}
|