Add a role for 2ship2harkinian (Majora's Mask PC port).
This commit is contained in:
parent
cac15febfa
commit
b0186dc85b
@ -7,6 +7,7 @@
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./roles/2ship2harkinian
|
||||
./roles/graphics
|
||||
./roles/shipwright
|
||||
./roles/steam_rom_manager
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
config = {
|
||||
me.graphical = true;
|
||||
me.ship2harkinian.enable = true;
|
||||
me.shipwright.enable = true;
|
||||
me.steam_rom_manager.enable = false; # Steam rom manager UI does not render. I think it wants to be in an AppImage.
|
||||
};
|
||||
|
@ -0,0 +1,43 @@
|
||||
{
|
||||
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 {
|
||||
home.packages = with pkgs; [
|
||||
(config.lib.nixGL.wrap _2ship2harkinian)
|
||||
];
|
||||
|
||||
# TODO perhaps install ~/.local/share/2ship/2ship2harkinian.json
|
||||
|
||||
home.persistence."/home/deck/.persist" = {
|
||||
directories = [
|
||||
{
|
||||
directory = ".local/share/2ship";
|
||||
method = "symlink";
|
||||
}
|
||||
];
|
||||
};
|
||||
})
|
||||
]
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user