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 [ config = lib.mkIf cfg.enable (lib.mkMerge [
(lib.mkIf cfg.enable { {
home.packages = with pkgs; [ home.packages = with pkgs; [
gdb gdb
]; ];
xdg.configFile."gdb/gdbinit".source = ./gdbinit; xdg.configFile."gdb/gdbinit".source = ./gdbinit;
}) }
(lib.mkIf cfg.rr.enable { (lib.mkIf cfg.rr.enable {
home.packages = [ home.packages = [
cfg.rr.package cfg.rr.package
]; ];
}) })
]; ]);
} }