Skip to content

Commit

Permalink
chore: Reorganize dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
szaffarano committed Jan 6, 2025
1 parent 82500d6 commit 42e6128
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 13 deletions.
17 changes: 4 additions & 13 deletions modules/home-manager/develop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
in
with lib; {
imports = [
./idea
./ocaml
./asm
./idea
./mise
./ocaml
./python
./rust
./zig
];

Expand All @@ -23,17 +25,6 @@ in
go
nixfmt-rfc-style
hyperfine

# Rust (TODO: move to another place?)
bacon
cargo
clippy
gcc
rustc
rustfmt
];

# Rust (TODO: move to another place?)
home.sessionVariables.CARGO_HOME = "${config.xdg.dataHome}/cargo";
};
}
20 changes: 20 additions & 0 deletions modules/home-manager/develop/python/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.develop.python;
in
with lib; {
options.develop.python.enable = mkEnableOption "python";

config = with pkgs;
lib.mkIf cfg.enable {
home = {
packages = [
uv
];
};
};
}
26 changes: 26 additions & 0 deletions modules/home-manager/develop/rust/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.develop.rust;
in
with lib; {
options.develop.rust.enable = mkEnableOption "rust";

config = with pkgs;
lib.mkIf cfg.enable {
home = {
sessionVariables.CARGO_HOME = "${config.xdg.dataHome}/cargo";
packages = [
bacon
cargo
clippy
gcc
rustc
rustfmt
];
};
};
}
1 change: 1 addition & 0 deletions modules/home-manager/terminal/cli/tmux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ in
options.terminal.cli.tmux.enable = mkEnableOption "tmux";

config = mkIf cfg.enable {
home.packages = with pkgs; [tmuxp];
programs.tmux = {
enable = true;
prefix = "C-a";
Expand Down
2 changes: 2 additions & 0 deletions users/szaffarano/zaffarano-elastic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
ultimate = true;
};
ocaml.enable = true;
python.enable = true;
rust.enable = true;
zig.enable = true;
};

Expand Down

0 comments on commit 42e6128

Please sign in to comment.