home: gdb: add rr

This commit is contained in:
Bruno BELANYI 2021-08-21 01:13:14 +02:00
parent 5edffcd21d
commit b20ef7f809

View file

@ -5,13 +5,34 @@ in
{
options.my.home.gdb = with lib; {
enable = my.mkDisableOption "gdb configuration";
rr = {
enable = my.mkDisableOption "rr configuration";
package = mkOption {
type = types.package;
default = pkgs.rr;
defaultText = literalExample "pkgs.rr";
description = ''
Package providing rr
'';
};
};
};
config = lib.mkIf cfg.enable {
config = lib.mkMerge [
(lib.mkIf cfg.enable {
home.packages = with pkgs; [
gdb
];
xdg.configFile."gdb/gdbinit".source = ./gdbinit;
};
})
(lib.mkIf cfg.rr.enable {
home.packages = [
cfg.rr.package
];
})
];
}