anchor.diff:      environment.etc."fish/config.fish".text = ''
         # /etc/fish/config.fish: DO NOT EDIT -- this file has been generated automatically.
   
  -      # if our parent shell didn't source the general config, do it
  +      # if we haven't sourced the general config, do it
         if not set -q __fish_nixos_general_config_sourced
           set fish_function_path ${pkgs.fish-foreign-env}/share/fish-foreign-env/functions $fish_function_path
           fenv source /etc/fish/foreign-env/shellInit > /dev/null
  
positive.code:         
          ${cfg.shellInit}
  
          # and leave a note to our children to spare them the same work
          set -gx __fish_nixos_general_config_sourced 1
        end
  
        # if our parent shell didn't source the login config, do it
        status --is-login; and not set -q __fish_nixos_login_config_sourced
        and begin
          set fish_function_path ${pkgs.fish-foreign-env}/share/fish-foreign-env/functions $fish_function_path
  
negative.code:         
          ${cfg.loginShellInit}
  
          # and leave a note so we don't source this config section again from
          # this very shell (children will source the general config anew)
          set -g __fish_nixos_login_config_sourced 1
        end
  
        # if we haven't sourced the interactive config, do it
        status --is-interactive; and not set -q __fish_nixos_interactive_config_sourced
        and begin
          ${fishAliases}
  