Add a role for ship of harkinian (the pc port of Ocarina of Time).

This commit is contained in:
Tom Alexander
2025-02-13 18:40:35 -05:00
parent fea86b00b4
commit ab6f7dbea5
6 changed files with 114 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
shipwright.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install shipwright.";
};
};
config = lib.mkIf config.me.shipwright.enable (
lib.mkMerge [
{
allowedUnfree = [ "shipwright" ];
}
(lib.mkIf config.me.graphical {
home.packages = with pkgs; [
(config.lib.nixGL.wrap shipwright)
];
# TODO perhaps install ~/.local/share/soh/shipofharkinian.json
})
]
);
}