nixos/home/modules/rust.nix

34 lines
643 B
Nix
Raw Normal View History

2024-08-29 00:15:36 +00:00
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.rust;
in
{
options.snowhawk.rust = {
enable = lib.mkEnableOption "rust home-manager module";
};
config = lib.mkIf cfg.enable {
2024-08-30 03:21:24 +00:00
snowhawk.direnv.enable = true;
2024-08-29 00:15:36 +00:00
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)";
};
};
};
};
}