nichts/modules/programs/cli/thefuck.nix
2024-09-09 19:51:44 +02:00

24 lines
529 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
inherit (lib) mkIf;
cfg = config.modules.system.programs.oh-my-posh;
in {
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.thefuck = {
enable = true;
package = pkgs.thefuck;
enableInstantMode = true;
enableNushellIntegration = true;
enableBashIntegration = true;
enableFishIntegration = true;
enableZshIntegration = true;
};
};
};
}