31 lines
711 B
Nix
31 lines
711 B
Nix
|
{ 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 = [
|
||
|
"lemmy-server"
|
||
|
"mx-sanebot"
|
||
|
];
|
||
|
})
|
||
|
(mkIf cfg {
|
||
|
sane.programs.docsets.enableFor.system = true;
|
||
|
# TODO: migrate this to `sane.user.programs.zeal-qt5.enable = true`
|
||
|
sane.programs.zeal-qt5.enableFor.user.colin = true;
|
||
|
})
|
||
|
];
|
||
|
}
|