{ pkgs, lib, config, ... } @ args: { options.dev = { compilers = lib.mkOption { type = lib.types.bool; description = "Install compiler toolchains"; default = builtins.hasAttr "osConfig" args; }; debuggers = lib.mkOption { type = lib.types.bool; description = "Install debuggers"; default = builtins.hasAttr "osConfig" args; }; }; config.home.packages = with pkgs; lib.mkMerge [ [ onefetch cargo-flamegraph cargo-edit cargo-nextest cargo-mommy cargo-feature cargo-expand cargo-clone-crate cargo-udeps cargo-audit cargo-modules cargo-bloat cargo-show-asm cargo-workspaces # cargo-binutils taplo bacon # term-rustdoc elf-info binsider twiggy bloaty (writeShellScriptBin "uv" ''env UV_PYTHON_PREFERENCE=only-system \ UV_PYTHON="${python3}" ${lib.getExe uv} $@'') (lib.lowPrio uv) ruff ty (python3.withPackages (p: with p; [ debugpy ])) beancount-language-server asmfmt nasmfmt nurl nix-init typst tinymist typstyle biome # TODO: replace with oxfmt? posting ] (lib.mkIf config.dev.compilers ([ rustup mold clang clang-tools nasm uiua ])) # ++ # lib.optionals stdenv.hostPlatform.isLinux [ j ])) (lib.mkIf config.dev.debuggers ([ lldb vscode-extensions.vadimcn.vscode-lldb.adapter ] ++ lib.optionals stdenv.hostPlatform.isLinux [ gdb rr ])) ]; config.home.sessionVariables.GOPATH = "${config.home.homeDirectory}/.cache/go"; }