Add a role for 2ship2harkinian (Majora's Mask).

This commit is contained in:
Tom Alexander 2025-01-24 21:25:41 -05:00
parent d5e7fdd097
commit 82c30bdb77
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 34 additions and 0 deletions

View File

@ -61,6 +61,7 @@
./roles/bluetooth ./roles/bluetooth
./roles/sm64ex ./roles/sm64ex
./roles/shipwright ./roles/shipwright
./roles/2ship2harkinian
]; ];
nix.settings.experimental-features = [ nix.settings.experimental-features = [

View File

@ -68,4 +68,5 @@
me.sm64ex.enable = true; me.sm64ex.enable = true;
me.shipwright.enable = true; me.shipwright.enable = true;
me.ship2harkinian.enable = true;
} }

View File

@ -0,0 +1,32 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
ship2harkinian.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install 2ship2harkinian.";
};
};
config = lib.mkIf config.me.ship2harkinian.enable (
lib.mkMerge [
{
allowedUnfree = [ "2ship2harkinian" ];
}
(lib.mkIf config.me.graphical {
environment.systemPackages = with pkgs; [
_2ship2harkinian
];
})
]
);
}