anchor.diff:          PAGER = mkDefault "less -R";
         };
   
  +    system.path = pkgs.buildEnv {
  +      name = "system-path";
  +      paths = cfg.systemPackages;
  +      inherit (cfg) pathsToLink extraOutputsToInstall;
  +    };
  +
  +    system.build.setEnvironment = concatStringsSep "\n" exportVariables;
  +    system.build.setAliases = concatStringsSep "\n" aliasCommands;
  +
     };
   }
  
positive.code:       description = "List of additional package outputs to be symlinked into <filename>/run/current-system/sw</filename>.";
      };
  
      environment.loginShell = mkOption {
        type = types.str;
        default = "$SHELL";
  
negative.code: 
    config = {
  
      environment.pathsToLink =
        [ "/bin"
          "/lib"
          "/share/info"
          "/share/locale"
        ];
  
      environment.extraInit = ''
         # reset TERM with new TERMINFO available (if any)
  