2025-01-24 20:23:49 -05:00
|
|
|
{
|
|
|
|
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
|
|
|
|
];
|
2025-01-25 21:22:55 -05:00
|
|
|
|
|
|
|
# TODO perhaps install ~/.local/share/soh/shipofharkinian.json
|
|
|
|
|
|
|
|
environment.persistence."/persist" = lib.mkIf (!config.me.buildingIso) {
|
|
|
|
hideMounts = true;
|
|
|
|
users.talexander = {
|
|
|
|
directories = [
|
|
|
|
{
|
|
|
|
directory = ".local/share/soh";
|
|
|
|
user = "talexander";
|
|
|
|
group = "talexander";
|
|
|
|
mode = "0755";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2025-01-24 20:23:49 -05:00
|
|
|
})
|
|
|
|
]
|
|
|
|
);
|
|
|
|
}
|