rust: module init

main
Zynh Ludwig 2024-08-28 17:15:36 -07:00
parent 624fa2f312
commit 505eac929a
2 changed files with 32 additions and 1 deletions

31
home/modules/rust.nix Normal file
View File

@ -0,0 +1,31 @@
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.rust;
in
{
options.snowhawk.rust = {
enable = lib.mkEnableOption "rust home-manager module";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
rustup
];
programs.bacon = {
enable = true;
settings = {
keybindings = {
esc = "back";
g = "scroll-to-top";
shift-g = "scroll-to-bottom";
k = "scroll-lines(-1)";
j = "scroll-lines(1)";
ctrl-u = "scroll-page(-1)";
ctrl-d = "scroll-page(1)";
};
};
};
};
}

View File

@ -27,6 +27,7 @@ in
flameshot.enable = true;
tldr.enable = true;
sources.enable = true;
rust.enable = true;
};
snowhawk.ssh = {
enable = true;
@ -94,7 +95,6 @@ in
steam
# Build Tools
rustup
gnumake
zig
gcc