nix-config/home/gdb/default.nix

18 lines
304 B
Nix
Raw Normal View History

2021-08-20 20:03:30 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.gdb;
in
{
options.my.home.gdb = with lib; {
enable = my.mkDisableOption "gdb configuration";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
gdb
];
xdg.configFile."gdb/gdbinit".source = ./gdbinit;
};
}