home: gdb: fix 'mkMerge' invocation
All checks were successful
ci/woodpecker/push/check Pipeline was successful

The `rr` configuration should be enabled only if `gdb` is.
This commit is contained in:
Bruno BELANYI 2023-08-13 16:07:33 +01:00
parent a87429b067
commit 4571a39c25

View file

@ -20,19 +20,19 @@ in
};
};
config = lib.mkMerge [
(lib.mkIf cfg.enable {
config = lib.mkIf cfg.enable (lib.mkMerge [
{
home.packages = with pkgs; [
gdb
];
xdg.configFile."gdb/gdbinit".source = ./gdbinit;
})
}
(lib.mkIf cfg.rr.enable {
home.packages = [
cfg.rr.package
];
})
];
]);
}