2023-05-10 21:23:42 +00:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) mkIf mkMerge mkOption types;
|
|
|
|
cfg = config.sane.roles.dev-machine;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.sane.roles.dev-machine = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
description = ''
|
|
|
|
enable if this machine is used generally for "development"
|
|
|
|
and you want tools to support that (e.g. docs).
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkMerge [
|
|
|
|
({
|
|
|
|
sane.programs.docsets.config.rustPkgs = [
|
2023-06-11 06:24:31 +00:00
|
|
|
# "lemmy-server"
|
2023-06-27 21:11:30 +00:00
|
|
|
# "mx-sanebot"
|
2023-05-10 21:23:42 +00:00
|
|
|
];
|
|
|
|
})
|
|
|
|
(mkIf cfg {
|
|
|
|
sane.programs.docsets.enableFor.system = true;
|
2023-07-09 00:32:22 +00:00
|
|
|
sane.programs.ldd-aarch64.enableFor.user.colin = true;
|
2023-08-16 11:29:43 +00:00
|
|
|
# sane.programs.zeal.enableFor.user.colin = true;
|
2023-05-10 21:23:42 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|