home: gdb: fix 'mkMerge' invocation
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
a87429b067
commit
4571a39c25
|
@ -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
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
];
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue