44 lines
823 B
Nix
44 lines
823 B
Nix
{
|
|
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
|
|
|
|
home.persistence."/home/deck/.persist" = {
|
|
directories = [
|
|
{
|
|
directory = ".local/share/soh";
|
|
method = "symlink";
|
|
}
|
|
];
|
|
};
|
|
})
|
|
]
|
|
);
|
|
}
|