nixos/thefuck: move init scripts to `programs.*.interactiveShellInit`

`fuck` should only be used for interactive sessions, but nothing more
(so init files like `/etc/zshenv` become even more lightweight).

Changed files
+2 -2
nixos
modules
programs
+2 -2
nixos/modules/programs/thefuck.nix
···
environment.systemPackages = with pkgs; [ thefuck ];
environment.shellInit = initScript;
-
programs.zsh.shellInit = mkIf prg.zsh.enable initScript;
-
programs.fish.shellInit = mkIf prg.fish.enable ''
${pkgs.thefuck}/bin/thefuck --alias | source
'';
};
···
environment.systemPackages = with pkgs; [ thefuck ];
environment.shellInit = initScript;
+
programs.zsh.interactiveShellInit = mkIf prg.zsh.enable initScript;
+
programs.fish.interactiveShellInit = mkIf prg.fish.enable ''
${pkgs.thefuck}/bin/thefuck --alias | source
'';
};