+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanGet sorcery running correctly62c7d69

main
1.4 KiB48 linesraw
1{ pkgs, lib, config, ... } @ args: {
2  options.dev = {
3    compilers = lib.mkOption {
4      type = lib.types.bool; description = "Install compiler toolchains";
5      default = builtins.hasAttr "osConfig" args;
6    };
7    debuggers = lib.mkOption {
8      type = lib.types.bool; description = "Install debuggers";
9      default = builtins.hasAttr "osConfig" args;
10    };
11  };
12
13  config.home.packages = with pkgs; lib.mkMerge [ [
14    onefetch
15
16    cargo-flamegraph
17    cargo-edit cargo-nextest cargo-mommy cargo-feature cargo-expand cargo-clone-crate
18    cargo-udeps cargo-audit cargo-modules cargo-bloat cargo-show-asm cargo-workspaces
19    # cargo-binutils
20    taplo
21    bacon
22    # term-rustdoc
23
24    elf-info binsider
25    twiggy bloaty
26
27    (writeShellScriptBin "uv" ''env UV_PYTHON_PREFERENCE=only-system \
28      UV_PYTHON="${python3}" ${lib.getExe uv} $@'')
29    (lib.lowPrio uv) ruff ty (python3.withPackages (p: with p; [ debugpy ]))
30    beancount-language-server
31    asmfmt nasmfmt
32    nurl nix-init
33    typst tinymist typstyle
34    biome # TODO: replace with oxfmt?
35    posting
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 ] ++
44      lib.optionals stdenv.hostPlatform.isLinux [ gdb rr ]))
45  ];
46
47  config.home.sessionVariables.GOPATH = "${config.home.homeDirectory}/.cache/go";
48}