+/config
my dotfiles and nix configuration
git clone https://git.julia.blue/+/config
62c7d69
main
1{ pkgs , lib , config , ...} @args :{ 2options . dev = { 3compilers = lib . mkOption { 4type = lib . types . bool ; description = "Install compiler toolchains" ; 5default = builtins . hasAttr "osConfig" args ; 6}; 7debuggers = lib . mkOption { 8type = lib . types . bool ; description = "Install debuggers" ; 9default = builtins . hasAttr "osConfig" args ; 10}; 11}; 12 13config . home . packages = with pkgs ; lib . mkMerge [ [ 14onefetch 15 16cargo-flamegraph 17cargo-edit cargo-nextest cargo-mommy cargo-feature cargo-expand cargo-clone-crate 18cargo-udeps cargo-audit cargo-modules cargo-bloat cargo-show-asm cargo-workspaces 19# cargo-binutils 20taplo 21bacon 22# term-rustdoc 23 24elf-info binsider 25twiggy bloaty 26 27( writeShellScriptBin "uv" '' env UV_PYTHON_PREFERENCE=only-system \ 28UV_PYTHON=" ${ python3 } " ${ lib . getExe uv } $ @ '' ) 29( lib . lowPrio uv ) ruff ty ( python3 . withPackages ( p :with p ; [ debugpy ])) 30beancount-language-server 31asmfmt nasmfmt 32nurl nix-init 33typst tinymist typstyle 34biome # TODO: replace with oxfmt? 35posting 36] 37 38( lib . mkIf config . dev . compilers 39([ rustup mold clang clang-tools nasm uiua ])) # ++ 40# lib.optionals stdenv.hostPlatform.isLinux [ j ])) 41 42( lib . mkIf config . dev . debuggers 43([ lldb vscode-extensions . vadimcn . vscode-lldb . adapter ] ++ 44lib . optionals stdenv . hostPlatform . isLinux [ gdb rr ])) 45]; 46 47config . home . sessionVariables . GOPATH = " ${ config . home . homeDirectory } /.cache/go" ; 48}