nix-files/hosts/modules/roles/dev-machine.nix
Colin 4ddf381d41 zeal-qt5: rename to zeal
i don't really care that it's qt5 v.s. qt6, say.
2023-05-10 21:24:58 +00:00

31 lines
703 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.enable = true`
sane.programs.zeal.enableFor.user.colin = true;
})
];
}