Add role for Ocarina of Time (shipwright).

This commit is contained in:
Tom Alexander 2025-01-24 20:23:49 -05:00
parent 94ef9ff3c8
commit 835fd340a2
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 34 additions and 0 deletions

View File

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

View File

@ -67,4 +67,5 @@
me.zsh.enable = true;
me.sm64ex.enable = true;
me.shipwright.enable = true;
}

View File

@ -0,0 +1,32 @@
{
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 {
environment.systemPackages = with pkgs; [
shipwright
];
})
]
);
}